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

Unified Diff: chrome/browser/net/proxy_browsertest.cc

Issue 940813003: Use a utility process for the Mojo v8 proxy resolver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8-pac-in-process-enable
Patch Set: Remove unneeded forward decl. Created 5 years, 9 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 | « no previous file | chrome/browser/net/proxy_service_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/proxy_browsertest.cc
diff --git a/chrome/browser/net/proxy_browsertest.cc b/chrome/browser/net/proxy_browsertest.cc
index d705a09521d02f77178932bfa8e7622be2042366..e77724998e391ddfc0ddaed560d7f789a8f26d3b 100644
--- a/chrome/browser/net/proxy_browsertest.cc
+++ b/chrome/browser/net/proxy_browsertest.cc
@@ -249,4 +249,30 @@ IN_PROC_BROWSER_TEST_F(DataProxyScriptBrowserTest, Verify) {
VerifyProxyScript(browser());
}
+// Fetch PAC script via a data: URL and run out-of-process using Mojo.
+class OutOfProcessProxyResolverBrowserTest : public InProcessBrowserTest {
+ public:
+ OutOfProcessProxyResolverBrowserTest() {}
+ ~OutOfProcessProxyResolverBrowserTest() override {}
+
+ void SetUpCommandLine(base::CommandLine* command_line) override {
+ std::string contents;
+ // Read in kPACScript contents.
+ ASSERT_TRUE(base::ReadFileToString(ui_test_utils::GetTestFilePath(
+ base::FilePath(base::FilePath::kCurrentDirectory),
+ base::FilePath(kPACScript)),
+ &contents));
+ command_line->AppendSwitchASCII(
+ switches::kProxyPacUrl, "data:," + contents);
+ command_line->AppendSwitch(switches::kV8PacMojoOutOfProcess);
+ }
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(OutOfProcessProxyResolverBrowserTest);
+};
+
+IN_PROC_BROWSER_TEST_F(OutOfProcessProxyResolverBrowserTest, Verify) {
+ VerifyProxyScript(browser());
+}
+
} // namespace
« no previous file with comments | « no previous file | chrome/browser/net/proxy_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698