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

Unified Diff: content/child/resource_dispatcher_unittest.cc

Issue 218973002: Extract Peer interface out of ResourceLoaderBridge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASED Created 6 years, 9 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/child/resource_dispatcher.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher_unittest.cc
diff --git a/content/child/resource_dispatcher_unittest.cc b/content/child/resource_dispatcher_unittest.cc
index a5231e5cddb6ab0acfde9a2ccb9b531bd42c1013..b12db6b290451621d8af2ba7e9b6563bbfbdeaf4 100644
--- a/content/child/resource_dispatcher_unittest.cc
+++ b/content/child/resource_dispatcher_unittest.cc
@@ -14,10 +14,12 @@
#include "content/child/resource_dispatcher.h"
#include "content/common/resource_messages.h"
#include "content/common/service_worker/service_worker_types.h"
+#include "content/public/child/request_peer.h"
#include "content/public/common/resource_response.h"
#include "net/base/net_errors.h"
#include "net/http/http_response_headers.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "webkit/child/resource_loader_bridge.h"
#include "webkit/common/appcache/appcache_interfaces.h"
using webkit_glue::ResourceLoaderBridge;
@@ -36,7 +38,7 @@ static const uint32 test_page_contents_len = arraysize(test_page_contents) - 1;
// Listens for request response data and stores it so that it can be compared
// to the reference data.
-class TestRequestCallback : public ResourceLoaderBridge::Peer {
+class TestRequestCallback : public RequestPeer {
public:
TestRequestCallback() : complete_(false) {
}
@@ -229,7 +231,7 @@ TEST_F(ResourceDispatcherTest, SerializedPostData) {
// loading is enabled/disabled in the context of a dispatched message, other
// queued messages should not be dispatched until deferred load is turned off.
class DeferredResourceLoadingTest : public ResourceDispatcherTest,
- public ResourceLoaderBridge::Peer {
+ public RequestPeer {
public:
DeferredResourceLoadingTest()
: defer_loading_(false) {
@@ -262,7 +264,7 @@ class DeferredResourceLoadingTest : public ResourceDispatcherTest,
set_defer_loading(false);
}
- // ResourceLoaderBridge::Peer methods.
+ // RequestPeer methods.
virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE {
}
@@ -338,7 +340,7 @@ TEST_F(DeferredResourceLoadingTest, DeferredLoadTest) {
}
class TimeConversionTest : public ResourceDispatcherTest,
- public ResourceLoaderBridge::Peer {
+ public RequestPeer {
public:
virtual bool Send(IPC::Message* msg) OVERRIDE {
delete msg;
@@ -353,7 +355,7 @@ class TimeConversionTest : public ResourceDispatcherTest,
ResourceMsg_ReceivedResponse(0, response_head));
}
- // ResourceLoaderBridge::Peer methods.
+ // RequestPeer methods.
virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE {
}
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698