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

Unified Diff: chrome/test/testing_browser_process.h

Issue 6478005: GTTF: Use a fresh TestingBrowserProcess for each test, part #1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make more tests use the new base class Created 9 years, 10 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/testing_browser_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/testing_browser_process.h
diff --git a/chrome/test/testing_browser_process.h b/chrome/test/testing_browser_process.h
index 6945f31b488e616b675d42c091a279d18013921f..827012e1b86573f69637daf20d5c1064b889bc99 100644
--- a/chrome/test/testing_browser_process.h
+++ b/chrome/test/testing_browser_process.h
@@ -142,4 +142,18 @@ class TestingBrowserProcess : public BrowserProcess {
DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
};
+// Scoper to put a TestingBrowserProcess in |g_browser_process|.
+class ScopedTestingBrowserProcess {
+ public:
+ ScopedTestingBrowserProcess();
+ ~ScopedTestingBrowserProcess();
+
+ private:
+ // TODO(phajdan.jr): Temporary, for http://crbug.com/61062.
+ // After the transition is over, we should just stack-allocate it.
+ scoped_ptr<TestingBrowserProcess> browser_process_;
+
+ DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess);
+};
+
#endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/testing_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698