diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-22 13:04:48 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-22 13:04:48 +0000 |
commit | 46a32b92e76b665e79bc3ee3b309766a47dbcf9d (patch) | |
tree | ef7bab9dc47d5a2473ac07f3998357b08106fd73 /content/browser/site_instance_impl_unittest.cc | |
parent | 2e0a8e5d4e235bac3a687e289de5bdfb6399a1e9 (diff) | |
download | chromium_src-46a32b92e76b665e79bc3ee3b309766a47dbcf9d.zip chromium_src-46a32b92e76b665e79bc3ee3b309766a47dbcf9d.tar.gz chromium_src-46a32b92e76b665e79bc3ee3b309766a47dbcf9d.tar.bz2 |
Add abstractions that let embedders drive tests of WebContents, without exposing the internals of content/.
A separate WebContentsTester interface is used. For reasons this approach was chosen, see comments on the interface.
As part of this work, removed a bunch of references to TabContents from Chrome, some of which were true usages (leaked to Chrome via the test_tab_contents.h header), others of which were just forward declarations and never used. Also removed a chunk of code from autofill_manager.cc that isn't called from anywhere that referenced TabContents.
TBR=ben@chromium.org
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9706012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128198 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/site_instance_impl_unittest.cc')
-rw-r--r-- | content/browser/site_instance_impl_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/browser/site_instance_impl_unittest.cc b/content/browser/site_instance_impl_unittest.cc index c861716..39905a1 100644 --- a/content/browser/site_instance_impl_unittest.cc +++ b/content/browser/site_instance_impl_unittest.cc @@ -118,8 +118,8 @@ class SiteInstanceTest : public testing::Test { virtual void SetUp() { old_client_ = content::GetContentClient(); - content::SetContentClient(&client_); old_browser_client_ = content::GetContentClient()->browser(); + content::SetContentClient(&client_); content::GetContentClient()->set_browser(&browser_client_); url_util::AddStandardScheme(kPrivilegedScheme); url_util::AddStandardScheme(chrome::kChromeUIScheme); |