Chromium Code Reviews| 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..04d954e6351a49ebb4844ce8859c0f219b04abfc 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(); |
| } |
| +void IsolateAllSitesForTesting(base::CommandLine* command_line) { |
| + command_line->AppendSwitch(switches::kSitePerProcess); |
| +} |
| + |
| +bool AreAllSitesIsolatedForTesting() { |
|
Charlie Reis
2015/07/21 16:58:24
nit: Move above IsolateAllSitesForTesting so they'
ncarter (slow)
2015/07/22 23:29:08
Done.
|
| + return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| + switches::kSitePerProcess); |
| +} |
| + |
| bool WaitForRenderFrameReady(RenderFrameHost* rfh) { |
| if (!rfh) |
| return false; |