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

Unified Diff: chrome/browser/ui/search/instant_test_utils.cc

Issue 2691033004: [Local NTP] Add an integration test for the fakebox (Closed)
Patch Set: fix Mac Created 3 years, 10 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/ui/search/instant_test_utils.h ('k') | chrome/browser/ui/search/local_ntp_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/instant_test_utils.cc
diff --git a/chrome/browser/ui/search/instant_test_utils.cc b/chrome/browser/ui/search/instant_test_utils.cc
index 7f04880c48a8d659070323d3dc7358014b24dec1..6ab4a5fd1d82d3c9e6fed2d630d4085970894855 100644
--- a/chrome/browser/ui/search/instant_test_utils.cc
+++ b/chrome/browser/ui/search/instant_test_utils.cc
@@ -118,6 +118,13 @@ bool InstantTestBase::GetIntFromJS(content::WebContents* contents,
contents, WrapScript(script), result);
}
+bool InstantTestBase::GetDoubleFromJS(content::WebContents* contents,
+ const std::string& script,
+ double* result) {
+ return content::ExecuteScriptAndExtractDouble(contents, WrapScript(script),
+ result);
+}
+
bool InstantTestBase::GetStringFromJS(content::WebContents* contents,
const std::string& script,
std::string* result) {
« no previous file with comments | « chrome/browser/ui/search/instant_test_utils.h ('k') | chrome/browser/ui/search/local_ntp_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698