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

Unified Diff: chrome/browser/resources/google_now/background_unittest.gtestjs

Issue 844503005: Convert now component to use GCM rather than pushMessaging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: responseType = text to application/json Created 5 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/background_unittest.gtestjs
diff --git a/chrome/browser/resources/google_now/background_unittest.gtestjs b/chrome/browser/resources/google_now/background_unittest.gtestjs
index 6a6f1259b980213703e1446bdf2804f8098a26cd..a9578a890bd8b9131f57c5d8582b945a21e006a2 100644
--- a/chrome/browser/resources/google_now/background_unittest.gtestjs
+++ b/chrome/browser/resources/google_now/background_unittest.gtestjs
@@ -713,6 +713,10 @@ function expectInitialization(fixture) {
fixture.mockGlobals.stubs().recordEvent(ANYTHING);
fixture.mockGlobals.
expects(once()).recordEvent(GoogleNowEvent.EXTENSION_START);
+ fixture.mockApis.expects(once())
+ .fillFromChromeLocalStorage(eqJSON({gcmNotificationKey: undefined}))
+ .will(returnValue(Promise.resolve({gcmNotificationKey: 'gcmkey'})));
+
}
TEST_F(TEST_NAME,'Initialize_SignedOut', function() {
« no previous file with comments | « chrome/browser/resources/google_now/background_test_util.js ('k') | chrome/browser/resources/google_now/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698