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

Unified Diff: chrome/browser/ui/search/search_ipc_router_policy_unittest.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
Index: chrome/browser/ui/search/search_ipc_router_policy_unittest.cc
diff --git a/chrome/browser/ui/search/search_ipc_router_policy_unittest.cc b/chrome/browser/ui/search/search_ipc_router_policy_unittest.cc
index ad221b5306f66ad17ec3b7f9d97f7f4b69ad7c38..f358a381108ddb113cd1a5117a40ed72ef732e45 100644
--- a/chrome/browser/ui/search/search_ipc_router_policy_unittest.cc
+++ b/chrome/browser/ui/search/search_ipc_router_policy_unittest.cc
@@ -41,6 +41,12 @@
}
};
+TEST_F(SearchIPCRouterPolicyTest, ProcessVoiceSearchSupportMsg) {
+ NavigateAndCommitActiveTab(GURL("chrome-search://foo/bar"));
+ EXPECT_TRUE(GetSearchIPCRouterPolicy()->
+ ShouldProcessSetVoiceSearchSupport());
+}
+
TEST_F(SearchIPCRouterPolicyTest, ProcessFocusOmnibox) {
NavigateAndCommitActiveTab(GURL(chrome::kChromeSearchLocalNtpUrl));
EXPECT_TRUE(GetSearchIPCRouterPolicy()->ShouldProcessFocusOmnibox(true));
@@ -199,6 +205,7 @@
SearchIPCRouter::Policy* router_policy = GetSearchIPCRouterPolicy();
EXPECT_TRUE(router_policy->ShouldSubmitQuery());
+ EXPECT_TRUE(router_policy->ShouldSendToggleVoiceSearch());
EXPECT_TRUE(router_policy->ShouldSendSetOmniboxStartMargin());
}
@@ -229,3 +236,8 @@
NavigateAndCommitActiveTab(GURL("chrome-search://foo/bar"));
EXPECT_TRUE(GetSearchIPCRouterPolicy()->ShouldSubmitQuery());
}
+
+TEST_F(SearchIPCRouterPolicyTest, SendToggleVoiceSearch) {
+ NavigateAndCommitActiveTab(GURL(chrome::kChromeSearchLocalNtpUrl));
+ EXPECT_TRUE(GetSearchIPCRouterPolicy()->ShouldSendToggleVoiceSearch());
+}
« no previous file with comments | « chrome/browser/ui/search/search_ipc_router_policy_impl.cc ('k') | chrome/browser/ui/search/search_ipc_router_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698