Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: content/test/mock_download_manager.h

Issue 10069054: RefCounted types should not have public destructors, content/ remaining bits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to Trunk Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_login_dialog.cc ('k') | content/test/mock_download_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/browser/download/download_request_handle.h" 9 #include "content/browser/download/download_request_handle.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/public/browser/download_item.h" 11 #include "content/public/browser/download_item.h"
12 #include "content/public/browser/download_manager.h" 12 #include "content/public/browser/download_manager.h"
13 #include "content/public/browser/download_save_info.h" 13 #include "content/public/browser/download_save_info.h"
14 #include "content/public/browser/download_url_parameters.h" 14 #include "content/public/browser/download_url_parameters.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 class MockDownloadManager : public content::DownloadManager { 21 class MockDownloadManager : public content::DownloadManager {
22 public: 22 public:
23 MockDownloadManager(); 23 MockDownloadManager();
24 virtual ~MockDownloadManager();
25 24
26 // DownloadManager: 25 // DownloadManager:
27 MOCK_METHOD0(Shutdown, void()); 26 MOCK_METHOD0(Shutdown, void());
28 MOCK_METHOD2(GetTemporaryDownloads, void(const FilePath& dir_path, 27 MOCK_METHOD2(GetTemporaryDownloads, void(const FilePath& dir_path,
29 DownloadVector* result)); 28 DownloadVector* result));
30 MOCK_METHOD2(GetAllDownloads, void(const FilePath& dir_path, 29 MOCK_METHOD2(GetAllDownloads, void(const FilePath& dir_path,
31 DownloadVector* result)); 30 DownloadVector* result));
32 MOCK_METHOD2(SearchDownloads, void(const string16& query, 31 MOCK_METHOD2(SearchDownloads, void(const string16& query,
33 DownloadVector* result)); 32 DownloadVector* result));
34 MOCK_METHOD1(Init, bool(content::BrowserContext* browser_context)); 33 MOCK_METHOD1(Init, bool(content::BrowserContext* browser_context));
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 MOCK_METHOD1(SavePageDownloadFinished, void(content::DownloadItem* download)); 83 MOCK_METHOD1(SavePageDownloadFinished, void(content::DownloadItem* download));
85 MOCK_METHOD1(GetActiveDownloadItem, content::DownloadItem*(int id)); 84 MOCK_METHOD1(GetActiveDownloadItem, content::DownloadItem*(int id));
86 MOCK_METHOD0(GenerateFileHash, bool()); 85 MOCK_METHOD0(GenerateFileHash, bool());
87 MOCK_CONST_METHOD0(delegate, content::DownloadManagerDelegate*()); 86 MOCK_CONST_METHOD0(delegate, content::DownloadManagerDelegate*());
88 MOCK_METHOD1(SetDownloadManagerDelegate, void( 87 MOCK_METHOD1(SetDownloadManagerDelegate, void(
89 content::DownloadManagerDelegate* delegate)); 88 content::DownloadManagerDelegate* delegate));
90 MOCK_METHOD2(ContinueDownloadWithPath, void(content::DownloadItem* download, 89 MOCK_METHOD2(ContinueDownloadWithPath, void(content::DownloadItem* download,
91 const FilePath& chosen_file)); 90 const FilePath& chosen_file));
92 MOCK_METHOD1(GetActiveDownload, content::DownloadItem*(int32 download_id)); 91 MOCK_METHOD1(GetActiveDownload, content::DownloadItem*(int32 download_id));
93 MOCK_METHOD1(SetFileManager, void(DownloadFileManager* file_manager)); 92 MOCK_METHOD1(SetFileManager, void(DownloadFileManager* file_manager));
93
94 protected:
95 virtual ~MockDownloadManager();
94 }; 96 };
95 97
96 } // namespace content 98 } // namespace content
97 99
98 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 100 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « content/shell/shell_login_dialog.cc ('k') | content/test/mock_download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698