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

Unified Diff: chrome/test/data/webui/settings/test_search_engines_browser_proxy.js

Issue 2572963004: MD Settings: Add "Show Google Now cards in the launcher" row in Search section. (Closed)
Patch Set: Rebase Created 4 years 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/test/data/webui/settings/search_page_test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/test_search_engines_browser_proxy.js
diff --git a/chrome/test/data/webui/settings/test_search_engines_browser_proxy.js b/chrome/test/data/webui/settings/test_search_engines_browser_proxy.js
index a42bb95ff89360a8954e5bfe9c77f696c35fbf9b..d1b0b2d2d2d483274e552f29349209ddced97c37 100644
--- a/chrome/test/data/webui/settings/test_search_engines_browser_proxy.js
+++ b/chrome/test/data/webui/settings/test_search_engines_browser_proxy.js
@@ -23,6 +23,7 @@ cr.define('settings_search', function() {
'validateSearchEngineInput',
'getHotwordInfo',
'setHotwordSearchEnabled',
+ 'getGoogleNowAvailability',
]);
/** @type {boolean} */
@@ -40,6 +41,9 @@ cr.define('settings_search', function() {
userName: 'user@test.org',
historyEnabled: false,
};
+
+ /** @type {boolean} */
+ this.googleNowAvailable = true;
};
TestSearchEnginesBrowserProxy.prototype = {
@@ -96,6 +100,12 @@ cr.define('settings_search', function() {
this.methodCalled('setHotwordSearchEnabled');
},
+ /** @override */
+ getGoogleNowAvailability: function() {
+ this.methodCalled('getGoogleNowAvailability');
+ return Promise.resolve(this.googleNowAvailable);
+ },
+
/**
* Sets the response to be returned by |getSearchEnginesList|.
* @param {!SearchEnginesInfo} searchEnginesInfo
« no previous file with comments | « chrome/test/data/webui/settings/search_page_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698