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(); |
} |