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

Unified Diff: chrome/browser/ui/find_bar/find_bar_host_browsertest.cc

Issue 10795090: Move ExecuteJavaScript functions from ui_test_utils.h to browser_test_utils.h so they can be reused… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | chrome/browser/ui/panels/old_panel_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/find_bar/find_bar_host_browsertest.cc
===================================================================
--- chrome/browser/ui/find_bar/find_bar_host_browsertest.cc (revision 148111)
+++ chrome/browser/ui/find_bar/find_bar_host_browsertest.cc (working copy)
@@ -27,6 +27,7 @@
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_view.h"
+#include "content/public/test/browser_test_utils.h"
#include "ui/base/accelerators/accelerator.h"
#include "ui/base/keycodes/keyboard_codes.h"
@@ -258,7 +259,7 @@
WARN_UNUSED_RESULT;
bool FocusedOnPage(WebContents* web_contents, std::string* result) {
- return ui_test_utils::ExecuteJavaScriptAndExtractString(
+ return content::ExecuteJavaScriptAndExtractString(
web_contents->GetRenderViewHost(),
L"",
L"window.domAutomationController.send(getFocusedElement());",
@@ -301,7 +302,7 @@
EXPECT_EQ(1, ordinal);
// Move the selection to link 1, after searching.
- ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractString(
+ ASSERT_TRUE(content::ExecuteJavaScriptAndExtractString(
tab_contents->web_contents()->GetRenderViewHost(),
L"",
L"window.domAutomationController.send(selectLink1());",
@@ -371,7 +372,7 @@
// Move the selection to link 1, after searching.
std::string result;
- ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractString(
+ ASSERT_TRUE(content::ExecuteJavaScriptAndExtractString(
tab->web_contents()->GetRenderViewHost(),
L"",
L"window.domAutomationController.send(selectLink1());",
« no previous file with comments | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | chrome/browser/ui/panels/old_panel_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698