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

Unified Diff: chrome/common/resource_dispatcher_unittest.cc

Issue 3053009: Pepper stream-to-file plumbing.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 | « chrome/common/resource_dispatcher.cc ('k') | chrome/common/security_filter_peer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/resource_dispatcher_unittest.cc
===================================================================
--- chrome/common/resource_dispatcher_unittest.cc (revision 53197)
+++ chrome/common/resource_dispatcher_unittest.cc (working copy)
@@ -32,6 +32,9 @@
TestRequestCallback() : complete_(false) {
}
+ virtual void OnUploadProgress(uint64 position, uint64 size) {
+ }
+
virtual bool OnReceivedRedirect(
const GURL& new_url,
const ResourceLoaderBridge::ResponseInfo& info,
@@ -46,14 +49,14 @@
bool content_filtered) {
}
+ virtual void OnDownloadedData(int len) {
+ }
+
virtual void OnReceivedData(const char* data, int len) {
EXPECT_FALSE(complete_);
data_.append(data, len);
}
- virtual void OnUploadProgress(uint64 position, uint64 size) {
- }
-
virtual void OnCompletedRequest(const URLRequestStatus& status,
const std::string& security_info) {
EXPECT_FALSE(complete_);
@@ -252,11 +255,7 @@
}
// ResourceLoaderBridge::Peer methods.
- virtual void OnReceivedResponse(
- const ResourceLoaderBridge::ResponseInfo& info,
- bool content_filtered) {
- EXPECT_EQ(defer_loading_, false);
- set_defer_loading(true);
+ virtual void OnUploadProgress(uint64 position, uint64 size) {
}
virtual bool OnReceivedRedirect(
@@ -268,14 +267,21 @@
return true;
}
+ virtual void OnReceivedResponse(
+ const ResourceLoaderBridge::ResponseInfo& info,
+ bool content_filtered) {
+ EXPECT_EQ(defer_loading_, false);
+ set_defer_loading(true);
+ }
+
+ virtual void OnDownloadedData(int len) {
+ }
+
virtual void OnReceivedData(const char* data, int len) {
EXPECT_EQ(defer_loading_, false);
set_defer_loading(false);
}
- virtual void OnUploadProgress(uint64 position, uint64 size) {
- }
-
virtual void OnCompletedRequest(const URLRequestStatus& status,
const std::string& security_info) {
}
« no previous file with comments | « chrome/common/resource_dispatcher.cc ('k') | chrome/common/security_filter_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698