OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ |
6 #define CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 6 #define CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "content/public/browser/download_interrupt_reasons.h" | 10 #include "content/public/browser/download_interrupt_reasons.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 MOCK_METHOD0(GetAutoOpened, bool()); | 78 MOCK_METHOD0(GetAutoOpened, bool()); |
79 MOCK_CONST_METHOD0(GetOpened, bool()); | 79 MOCK_CONST_METHOD0(GetOpened, bool()); |
80 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); | 80 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); |
81 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); | 81 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); |
82 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType)); | 82 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType)); |
83 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); | 83 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); |
84 MOCK_METHOD1(SetIsTemporary, void(bool)); | 84 MOCK_METHOD1(SetIsTemporary, void(bool)); |
85 MOCK_METHOD1(SetOpened, void(bool)); | 85 MOCK_METHOD1(SetOpened, void(bool)); |
86 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); | 86 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); |
87 MOCK_CONST_METHOD1(DebugString, std::string(bool)); | 87 MOCK_CONST_METHOD1(DebugString, std::string(bool)); |
| 88 MOCK_METHOD1(SetDangerType, void(DownloadDangerType)); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace content | 91 } // namespace content |
91 | 92 |
92 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 93 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ |
OLD | NEW |