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/time.h" | 8 #include "base/time.h" |
9 #include "content/public/browser/download_id.h" | 9 #include "content/public/browser/download_id.h" |
10 #include "content/public/browser/download_interrupt_reasons.h" | 10 #include "content/public/browser/download_interrupt_reasons.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 MOCK_METHOD0(GetAutoOpened, bool()); | 83 MOCK_METHOD0(GetAutoOpened, bool()); |
84 MOCK_CONST_METHOD0(GetOpened, bool()); | 84 MOCK_CONST_METHOD0(GetOpened, bool()); |
85 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); | 85 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); |
86 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); | 86 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); |
87 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType)); | 87 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType)); |
88 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); | 88 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); |
89 MOCK_METHOD1(SetIsTemporary, void(bool)); | 89 MOCK_METHOD1(SetIsTemporary, void(bool)); |
90 MOCK_METHOD1(SetOpened, void(bool)); | 90 MOCK_METHOD1(SetOpened, void(bool)); |
91 MOCK_METHOD1(SetDisplayName, void(const FilePath&)); | 91 MOCK_METHOD1(SetDisplayName, void(const FilePath&)); |
92 MOCK_CONST_METHOD1(DebugString, std::string(bool)); | 92 MOCK_CONST_METHOD1(DebugString, std::string(bool)); |
93 MOCK_METHOD0(MockDownloadOpenForTesting, void()); | |
94 }; | 93 }; |
95 | 94 |
96 } // namespace content | 95 } // namespace content |
97 | 96 |
98 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 97 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ |
OLD | NEW |