diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-04 21:57:01 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-04 21:57:01 +0000 |
commit | 728a67635f3e69b412c258b47091033c5573a49c (patch) | |
tree | 210f9002727c29a36733071dbf2438a97dc6f3fa /chrome/browser/autofill | |
parent | cfe8fd1fe634cb63142aed136284a78f2f257965 (diff) | |
download | chromium_src-728a67635f3e69b412c258b47091033c5573a49c.zip chromium_src-728a67635f3e69b412c258b47091033c5573a49c.tar.gz chromium_src-728a67635f3e69b412c258b47091033c5573a49c.tar.bz2 |
Use the TestTabContents provided by RenderViewHostTestHarness instead of rolling our own TestTabContents. Fixes a leak in the tests.
BUG=37385
TEST=AutoFillInfoBarDelegateTest
Review URL: http://codereview.chromium.org/668088
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40666 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill')
-rw-r--r-- | chrome/browser/autofill/autofill_infobar_delegate_unittest.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/browser/autofill/autofill_infobar_delegate_unittest.cc b/chrome/browser/autofill/autofill_infobar_delegate_unittest.cc index f6b3021..cc2b6705 100644 --- a/chrome/browser/autofill/autofill_infobar_delegate_unittest.cc +++ b/chrome/browser/autofill/autofill_infobar_delegate_unittest.cc @@ -62,8 +62,7 @@ class AutoFillInfoBarDelegateTest : public RenderViewHostTestHarness { virtual void SetUp() { RenderViewHostTestHarness::SetUp(); - tab_contents_.reset(new TestTabContents(profile_.get(), NULL)); - autofill_manager_.reset(new MockAutoFillManager(tab_contents_.get())); + autofill_manager_.reset(new MockAutoFillManager(contents())); infobar_.reset(new AutoFillInfoBarDelegate(NULL, autofill_manager_.get())); } @@ -72,8 +71,6 @@ class AutoFillInfoBarDelegateTest : public RenderViewHostTestHarness { scoped_ptr<AutoFillInfoBarDelegate> infobar_; private: - scoped_ptr<TestTabContents> tab_contents_; - DISALLOW_COPY_AND_ASSIGN(AutoFillInfoBarDelegateTest); }; |