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

Unified Diff: content/browser/loader/async_revalidation_manager_unittest.cc

Issue 2108643004: Remove use of WebContentsImpl from ResourceDispatcherHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render-view-try-3
Patch Set: fixes Created 4 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
Index: content/browser/loader/async_revalidation_manager_unittest.cc
diff --git a/content/browser/loader/async_revalidation_manager_unittest.cc b/content/browser/loader/async_revalidation_manager_unittest.cc
index f299ad54d0f514adc3e15d2074dca5e5407605eb..68053ff34a05f9a28eb25767b29d1bbe1362cda5 100644
--- a/content/browser/loader/async_revalidation_manager_unittest.cc
+++ b/content/browser/loader/async_revalidation_manager_unittest.cc
@@ -19,6 +19,7 @@
#include "content/browser/child_process_security_policy_impl.h"
#include "content/browser/loader/resource_dispatcher_host_impl.h"
#include "content/browser/loader/resource_message_filter.h"
+#include "content/browser/loader_delegate_impl.h"
#include "content/common/child_process_host_impl.h"
#include "content/common/resource_messages.h"
#include "content/common/resource_request.h"
@@ -270,6 +271,7 @@ class AsyncRevalidationManagerTest : public ::testing::Test {
std::unique_ptr<net::TestNetworkDelegate> network_delegate)
: thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP),
network_delegate_(std::move(network_delegate)) {
+ host_.SetLoaderDelegate(&loader_delegate_);
browser_context_.reset(new TestBrowserContext());
BrowserContext::EnsureResourceContextInitialized(browser_context_.get());
base::RunLoop().RunUntilIdle();
@@ -321,6 +323,7 @@ class AsyncRevalidationManagerTest : public ::testing::Test {
std::unique_ptr<TestURLRequestJobFactory> job_factory_;
scoped_refptr<BlackholeFilter> filter_;
std::unique_ptr<net::TestNetworkDelegate> network_delegate_;
+ LoaderDelegateImpl loader_delegate_;
ResourceDispatcherHostImpl host_;
};

Powered by Google App Engine
This is Rietveld 408576698