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

Unified Diff: chrome/browser/resources/google_now/utility_test_util.js

Issue 166033010: Convert Google Now's use of chrome.local.storage.get to use Promises (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR Feedback Created 6 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
Index: chrome/browser/resources/google_now/utility_test_util.js
diff --git a/chrome/browser/resources/google_now/utility_test_util.js b/chrome/browser/resources/google_now/utility_test_util.js
index d06f43c8e4958c36d0bb35a1fe868f36acf431ba..741d84dc856f9b0563be149ffff231d5041f7141 100644
--- a/chrome/browser/resources/google_now/utility_test_util.js
+++ b/chrome/browser/resources/google_now/utility_test_util.js
@@ -13,6 +13,11 @@ chrome['identity'] = {
getAuthToken: emptyMock,
removeCachedAuthToken: emptyMock
};
+chrome['storage'] = {
+ local: {
+ get: emptyMock
+ }
+};
chrome['webstorePrivate'] = {
getBrowserLogin: emptyMock
};
« no previous file with comments | « chrome/browser/resources/google_now/utility.js ('k') | chrome/browser/resources/google_now/utility_unittest.gtestjs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698