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

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

Issue 1436583002: Revert of Remove setVoiceSearchSupported part of EmbeddedSearch SearchBox API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/cocoa/view_id_util_browsertest.mm ('k') | chrome/browser/ui/search/search_ipc_router.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/instant_extended_interactive_uitest.cc
diff --git a/chrome/browser/ui/search/instant_extended_interactive_uitest.cc b/chrome/browser/ui/search/instant_extended_interactive_uitest.cc
index 44167e878c194d6ffa7e655b5ebfd5eb15cdfffc..34a519efc3727ce3785876cc2ce38308d25a87a0 100644
--- a/chrome/browser/ui/search/instant_extended_interactive_uitest.cc
+++ b/chrome/browser/ui/search/instant_extended_interactive_uitest.cc
@@ -139,8 +139,9 @@
submit_count_(0),
on_esc_key_press_event_calls_(0),
on_focus_changed_calls_(0),
- is_focused_(false) {}
-
+ is_focused_(false),
+ on_toggle_voice_search_calls_(0) {
+ }
protected:
void SetUpInProcessBrowserTestFixture() override {
search::EnableQueryExtractionForTesting();
@@ -184,6 +185,8 @@
&on_focus_changed_calls_) &&
GetBoolFromJS(contents, "isFocused",
&is_focused_) &&
+ GetIntFromJS(contents, "onToggleVoiceSearchCalls",
+ &on_toggle_voice_search_calls_) &&
GetStringFromJS(contents, "prefetchQuery", &prefetch_query_value_);
}
@@ -244,6 +247,7 @@
std::string query_value_;
int on_focus_changed_calls_;
bool is_focused_;
+ int on_toggle_voice_search_calls_;
std::string prefetch_query_value_;
};
« no previous file with comments | « chrome/browser/ui/cocoa/view_id_util_browsertest.mm ('k') | chrome/browser/ui/search/search_ipc_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698