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

Unified Diff: content/browser/download/mock_download_file.h

Issue 10696043: Shifted DownloadFile to exporting DownloadInterruptReasons. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'd to TOT. Created 8 years, 6 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/browser/download/download_file_unittest.cc ('k') | content/browser/download/mock_download_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/mock_download_file.h
diff --git a/content/browser/download/mock_download_file.h b/content/browser/download/mock_download_file.h
index e7fb301488f17c07e093ec53e95433bfbb3e2905..330a501b179043acc42540199a537c5ee65d6134 100644
--- a/content/browser/download/mock_download_file.h
+++ b/content/browser/download/mock_download_file.h
@@ -14,7 +14,6 @@
#include "content/browser/download/download_file.h"
#include "content/public/browser/download_id.h"
#include "content/public/browser/download_manager.h"
-#include "net/base/net_errors.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -26,9 +25,11 @@ class MockDownloadFile : virtual public content::DownloadFile {
virtual ~MockDownloadFile();
// DownloadFile functions.
- MOCK_METHOD0(Initialize, net::Error());
- MOCK_METHOD2(AppendDataToFile, net::Error(const char* data, size_t data_len));
- MOCK_METHOD1(Rename, net::Error(const FilePath& full_path));
+ MOCK_METHOD0(Initialize, content::DownloadInterruptReason());
+ MOCK_METHOD2(AppendDataToFile, content::DownloadInterruptReason(
+ const char* data, size_t data_len));
+ MOCK_METHOD1(Rename, content::DownloadInterruptReason(
+ const FilePath& full_path));
MOCK_METHOD0(Detach, void());
MOCK_METHOD0(Cancel, void());
MOCK_METHOD0(Finish, void());
« no previous file with comments | « content/browser/download/download_file_unittest.cc ('k') | content/browser/download/mock_download_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698