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

Unified Diff: content/test/mock_download_manager.h

Issue 10232010: DownloadUrlParameters (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fixes Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/download_url_parameters.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/mock_download_manager.h
diff --git a/content/test/mock_download_manager.h b/content/test/mock_download_manager.h
index 5b074ee805eb74ea50b9f8cd8221d33e2adb7256..c0eb6d7c6ccf9c96da28857f82249b7830c917b7 100644
--- a/content/test/mock_download_manager.h
+++ b/content/test/mock_download_manager.h
@@ -11,6 +11,7 @@
#include "content/public/browser/download_item.h"
#include "content/public/browser/download_manager.h"
#include "content/public/browser/download_save_info.h"
+#include "content/public/browser/download_url_parameters.h"
#include "googleurl/src/gurl.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -52,15 +53,10 @@ class MockDownloadManager : public content::DownloadManager {
base::Time remove_end));
MOCK_METHOD1(RemoveDownloads, int(base::Time remove_begin));
MOCK_METHOD0(RemoveAllDownloads, int());
- MOCK_METHOD8(DownloadUrl,
- void(const GURL& url,
- const GURL& referrer,
- const std::string& referrer_encoding,
- bool prefer_cache,
- int64 post_id,
- const DownloadSaveInfo& save_info,
- content::WebContents* web_contents,
- const DownloadManager::OnStartedCallback& callback));
+ MOCK_METHOD1(DownloadUrlMock, void(DownloadUrlParameters*));
+ virtual void DownloadUrl(scoped_ptr<DownloadUrlParameters> params) OVERRIDE {
+ DownloadUrlMock(params.get());
+ }
MOCK_METHOD1(AddObserver, void(Observer* observer));
MOCK_METHOD1(RemoveObserver, void(Observer* observer));
MOCK_METHOD1(OnPersistentStoreQueryComplete, void(
« no previous file with comments | « content/public/browser/download_url_parameters.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698