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

Unified Diff: chrome/test/base/in_process_browser_test.h

Issue 10832106: Allow writing browser_tests that involve a restart. The way to do this: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/browser/prefs/pref_service_browsertest.cc ('k') | content/test/test_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/in_process_browser_test.h
===================================================================
--- chrome/test/base/in_process_browser_test.h (revision 150055)
+++ chrome/test/base/in_process_browser_test.h (working copy)
@@ -80,6 +80,19 @@
// InProcessBrowserTest disables the sandbox when running.
//
// See ui_test_utils for a handful of methods designed for use with this class.
+//
+// It's possible to write browser tests that span a restart by splitting each
+// run of the browser process into a separate test. Example:
+//
+// IN_PROC_BROWSER_TEST_F(Foo, PRE_Bar) {
+// do something
+// }
+//
+// IN_PROC_BROWSER_TEST_F(Foo, Bar) {
+// verify something persisted from before
+// }
+//
+// This is recursive, so PRE_PRE_Bar would run before PRE_BAR.
class InProcessBrowserTest : public BrowserTestBase {
public:
InProcessBrowserTest();
« no previous file with comments | « chrome/browser/prefs/pref_service_browsertest.cc ('k') | content/test/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698