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

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

Issue 10850010: Make session restore understand that tabs have multiple SessionStorageNamespaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Unittest using jam's new PRE_ method 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
Index: chrome/test/base/in_process_browser_test.h
diff --git a/chrome/test/base/in_process_browser_test.h b/chrome/test/base/in_process_browser_test.h
index 9b2593472e09477f25f20b037b5a50d0ed55f973..c4db114811aefc910e42b53e05ec43d622acc8d0 100644
--- a/chrome/test/base/in_process_browser_test.h
+++ b/chrome/test/base/in_process_browser_test.h
@@ -80,6 +80,19 @@ class RuleBasedHostResolverProc;
// 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();

Powered by Google App Engine
This is Rietveld 408576698