| Index: content/browser/renderer_host/resource_dispatcher_host_browsertest.cc
|
| ===================================================================
|
| --- content/browser/renderer_host/resource_dispatcher_host_browsertest.cc (revision 148111)
|
| +++ content/browser/renderer_host/resource_dispatcher_host_browsertest.cc (working copy)
|
| @@ -124,8 +124,7 @@
|
| content::NotificationService::AllSources());
|
|
|
| // Create dynamic popup.
|
| - if (!ui_test_utils::ExecuteJavaScript(
|
| - render_view_host(), L"", L"OpenPopup();"))
|
| + if (!content::ExecuteJavaScript(render_view_host(), L"", L"OpenPopup();"))
|
| return false;
|
|
|
| observer.Wait();
|
| @@ -216,7 +215,7 @@
|
|
|
| // Let's check the XMLHttpRequest ran successfully.
|
| bool success = false;
|
| - EXPECT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractBool(
|
| + EXPECT_TRUE(content::ExecuteJavaScriptAndExtractBool(
|
| chrome::GetActiveWebContents(browser())->GetRenderViewHost(),
|
| L"",
|
| L"window.domAutomationController.send(DidSyncRequestSucceed());",
|
| @@ -234,7 +233,7 @@
|
|
|
| // Let's check the XMLHttpRequest ran successfully.
|
| bool success = false;
|
| - EXPECT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractBool(
|
| + EXPECT_TRUE(content::ExecuteJavaScriptAndExtractBool(
|
| chrome::GetActiveWebContents(browser())->GetRenderViewHost(),
|
| L"",
|
| L"window.domAutomationController.send(DidSucceed());",
|
| @@ -409,7 +408,7 @@
|
| std::string redirect_script = "window.location='" +
|
| test_url.possibly_invalid_spec() + "';" +
|
| "window.domAutomationController.send(true);";
|
| - EXPECT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractBool(
|
| + EXPECT_TRUE(content::ExecuteJavaScriptAndExtractBool(
|
| chrome::GetActiveWebContents(browser())->GetRenderViewHost(),
|
| L"", ASCIIToWide(redirect_script), &success));
|
| EXPECT_EQ(expected_title16, title_watcher.WaitAndGetTitle());
|
|
|