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

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

Issue 10831302: Download resumption - Preliminary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed signed/unsigned compare issue. Created 8 years 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
« no previous file with comments | « content/public/test/mock_download_item.h ('k') | no next file » | 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_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 7
8 #include "content/public/browser/download_manager.h" 8 #include "content/public/browser/download_manager.h"
9 #include "content/public/browser/download_save_info.h" 9 #include "content/public/browser/download_save_info.h"
10 #include "content/public/browser/download_url_parameters.h" 10 #include "content/public/browser/download_url_parameters.h"
11 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 class DownloadRequestHandle;
16
15 namespace content { 17 namespace content {
16 18
17 // To avoid leaking download_request_handle.h to embedders. 19 // To avoid leaking download_request_handle.h to embedders.
18 void PrintTo(const DownloadRequestHandle& params, std::ostream* os); 20 void PrintTo(const DownloadRequestHandle& params, std::ostream* os);
19 21
20 class MockDownloadManager : public DownloadManager { 22 class MockDownloadManager : public DownloadManager {
21 public: 23 public:
22 MockDownloadManager(); 24 MockDownloadManager();
23 25
24 // DownloadManager: 26 // DownloadManager:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 MOCK_METHOD1(GetActiveDownloadItem, DownloadItem*(int id)); 69 MOCK_METHOD1(GetActiveDownloadItem, DownloadItem*(int id));
68 MOCK_METHOD1(GetActiveDownload, DownloadItem*(int32 download_id)); 70 MOCK_METHOD1(GetActiveDownload, DownloadItem*(int32 download_id));
69 71
70 protected: 72 protected:
71 virtual ~MockDownloadManager(); 73 virtual ~MockDownloadManager();
72 }; 74 };
73 75
74 } // namespace content 76 } // namespace content
75 77
76 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 78 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « content/public/test/mock_download_item.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698