Index: content/public/test/browser_test_utils.cc |
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc |
index e1ddc2d258cd18e78165b110b6e794af4dd337d9..2cd42b5e71c8fe2f78cb79ceef434d0aac640dca 100644 |
--- a/content/public/test/browser_test_utils.cc |
+++ b/content/public/test/browser_test_utils.cc |
@@ -32,6 +32,7 @@ |
#include "content/public/browser/render_view_host.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/browser/web_contents_observer.h" |
+#include "content/public/common/content_switches.h" |
#include "content/public/test/test_utils.h" |
#include "net/base/filename_util.h" |
#include "net/cookies/cookie_store.h" |
@@ -742,6 +743,15 @@ void RunTaskAndWaitForInterstitialDetach(content::WebContents* web_contents, |
loop_runner->Run(); |
} |
+bool AreAllSitesIsolatedForTesting() { |
+ return base::CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kSitePerProcess); |
+} |
+ |
+void IsolateAllSitesForTesting(base::CommandLine* command_line) { |
+ command_line->AppendSwitch(switches::kSitePerProcess); |
+} |
+ |
bool WaitForRenderFrameReady(RenderFrameHost* rfh) { |
if (!rfh) |
return false; |