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

Unified Diff: content/browser/tab_contents/tab_contents_delegate_unittest.cc

Issue 7465041: GTTF: Use a fresh TestingBrowserProcess for each test, part #4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: should work Created 9 years, 5 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/tab_contents/tab_contents_delegate_unittest.cc
diff --git a/content/browser/tab_contents/tab_contents_delegate_unittest.cc b/content/browser/tab_contents/tab_contents_delegate_unittest.cc
index ecce8c447d340b45c114bcb5aa72ba5ba7a7de30..a04f0a318bae168e936fe408b99722a93942247e 100644
--- a/content/browser/tab_contents/tab_contents_delegate_unittest.cc
+++ b/content/browser/tab_contents/tab_contents_delegate_unittest.cc
@@ -4,6 +4,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
+#include "chrome/test/testing_browser_process.h"
#include "chrome/test/testing_profile.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/tab_contents/tab_contents_delegate.h"
@@ -52,6 +53,7 @@ class MockTabContentsDelegate : public TabContentsDelegate {
};
TEST(TabContentsDelegateTest, UnregisterInDestructor) {
+ ScopedTestingBrowserProcess browser_process;
MessageLoop loop(MessageLoop::TYPE_UI);
scoped_ptr<MockTabContentsDelegate> delegate(new MockTabContentsDelegate());
scoped_ptr<Profile> profile(new TestingProfile());

Powered by Google App Engine
This is Rietveld 408576698