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_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ |
6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ |
7 #pragma once | |
8 | 7 |
9 #include "content/public/browser/download_manager.h" | 8 #include "content/public/browser/download_manager.h" |
10 #include "content/public/browser/download_save_info.h" | 9 #include "content/public/browser/download_save_info.h" |
11 #include "content/public/browser/download_url_parameters.h" | 10 #include "content/public/browser/download_url_parameters.h" |
12 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
15 | 14 |
16 // To avoid leaking download_request_handle.h to embedders. | 15 // To avoid leaking download_request_handle.h to embedders. |
17 void PrintTo(const DownloadRequestHandle& params, std::ostream* os); | 16 void PrintTo(const DownloadRequestHandle& params, std::ostream* os); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 MOCK_METHOD1(GetActiveDownload, content::DownloadItem*(int32 download_id)); | 93 MOCK_METHOD1(GetActiveDownload, content::DownloadItem*(int32 download_id)); |
95 MOCK_METHOD1(SetFileManager, void(DownloadFileManager* file_manager)); | 94 MOCK_METHOD1(SetFileManager, void(DownloadFileManager* file_manager)); |
96 | 95 |
97 protected: | 96 protected: |
98 virtual ~MockDownloadManager(); | 97 virtual ~MockDownloadManager(); |
99 }; | 98 }; |
100 | 99 |
101 } // namespace content | 100 } // namespace content |
102 | 101 |
103 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ | 102 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ |
OLD | NEW |