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

Unified Diff: content/renderer/scheduler/resource_dispatch_throttler_unittest.cc

Issue 1977313002: Define parameter structs of resource messages out of resource_messages.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/content_common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/scheduler/resource_dispatch_throttler_unittest.cc
diff --git a/content/renderer/scheduler/resource_dispatch_throttler_unittest.cc b/content/renderer/scheduler/resource_dispatch_throttler_unittest.cc
index 0a6c15972be31ee2720d207d6b85d19ef240d460..a3556c15980d8b007bf9ae96f6d6f62540804c0c 100644
--- a/content/renderer/scheduler/resource_dispatch_throttler_unittest.cc
+++ b/content/renderer/scheduler/resource_dispatch_throttler_unittest.cc
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/scoped_vector.h"
#include "content/common/resource_messages.h"
+#include "content/common/resource_request.h"
#include "content/test/fake_renderer_scheduler.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -126,7 +127,7 @@ class ResourceDispatchThrottlerTest : public testing::Test, public IPC::Sender {
bool FlushScheduled() { return throttler_->flush_scheduled(); }
bool RequestResource() {
- ResourceHostMsg_Request request;
+ ResourceRequest request;
request.download_to_file = true;
return throttler_->Send(new ResourceHostMsg_RequestResource(
kRoutingId, ++last_request_id_, request));
@@ -135,7 +136,7 @@ class ResourceDispatchThrottlerTest : public testing::Test, public IPC::Sender {
bool RequestResourceSync() {
SyncLoadResult result;
return throttler_->Send(new ResourceHostMsg_SyncLoad(
- kRoutingId, ++last_request_id_, ResourceHostMsg_Request(), &result));
+ kRoutingId, ++last_request_id_, ResourceRequest(), &result));
}
void RequestResourcesUntilThrottled() {
« no previous file with comments | « content/content_common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698