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

Unified Diff: content/browser/web_contents/web_contents_impl_unittest.cc

Issue 10479023: Simplify how Content*Client interfaces are created. Instead of depending on the embedder to know wh… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove unused function declaration Created 8 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/web_contents/web_contents_impl_unittest.cc
===================================================================
--- content/browser/web_contents/web_contents_impl_unittest.cc (revision 140381)
+++ content/browser/web_contents/web_contents_impl_unittest.cc (working copy)
@@ -4,7 +4,6 @@
#include "base/logging.h"
#include "base/utf_string_conversions.h"
-#include "content/browser/mock_content_browser_client.h"
#include "content/browser/renderer_host/render_view_host_impl.h"
#include "content/browser/renderer_host/test_render_view_host.h"
#include "content/browser/site_instance_impl.h"
@@ -25,6 +24,7 @@
#include "content/public/common/url_constants.h"
#include "content/public/test/mock_render_process_host.h"
#include "content/public/test/test_browser_thread.h"
+#include "content/test/test_content_browser_client.h"
#include "content/test/test_content_client.h"
#include "googleurl/src/url_util.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -94,7 +94,7 @@
};
class WebContentsImplTestBrowserClient
- : public content::MockContentBrowserClient {
+ : public content::TestContentBrowserClient {
public:
WebContentsImplTestBrowserClient() {
}
@@ -289,12 +289,12 @@
old_client_ = content::GetContentClient();
old_browser_client_ = content::GetContentClient()->browser();
content::SetContentClient(&client_);
- content::GetContentClient()->set_browser(&browser_client_);
+ content::GetContentClient()->set_browser_for_testing(&browser_client_);
RenderViewHostImplTestHarness::SetUp();
}
virtual void TearDown() {
- content::GetContentClient()->set_browser(old_browser_client_);
+ content::GetContentClient()->set_browser_for_testing(old_browser_client_);
content::SetContentClient(old_client_);
RenderViewHostImplTestHarness::TearDown();
}

Powered by Google App Engine
This is Rietveld 408576698