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

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

Issue 13409003: Hide ContentClient getters from embedders so that they they don't reuse content's embedder API. The… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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/resource_loader_unittest.cc
===================================================================
--- content/browser/loader/resource_loader_unittest.cc (revision 192622)
+++ content/browser/loader/resource_loader_unittest.cc (working copy)
@@ -230,9 +230,8 @@
cert_request_info->cert_authorities = dummy_authority;
// Plug in test content browser client.
- ContentBrowserClient* old_client = GetContentClient()->browser();
SelectCertificateBrowserClient test_client;
- GetContentClient()->set_browser_for_testing(&test_client);
+ ContentBrowserClient* old_client = SetBrowserClientForTesting(&test_client);
// Everything is set up. Trigger the resource loader certificate request event
// and run the message loop.
@@ -240,7 +239,7 @@
message_loop_->RunUntilIdle();
// Restore the original content browser client.
- GetContentClient()->set_browser_for_testing(old_client);
+ SetBrowserClientForTesting(old_client);
// Check if the test store was queried against correct |cert_authorities|.
EXPECT_EQ(1, raw_ptr_to_store->request_count());

Powered by Google App Engine
This is Rietveld 408576698