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 693f9d342709e29e3ffb382d2ae0e646dc073a9b..2c3f19267d9f5e84c31d10a00444aabcb7d53ce0 100644 |
--- a/chrome/browser/resources/google_now/background_unittest.gtestjs |
+++ b/chrome/browser/resources/google_now/background_unittest.gtestjs |
@@ -59,7 +59,7 @@ function mockInitializeDependencies(fixture) { |
'startPollingCards' |
]); |
fixture.makeAndRegisterMockApis([ |
- 'chrome.identity.getAuthToken', |
+ 'authenticationManager.isSignedIn', |
'chrome.location.clearWatch', |
'chrome.notifications.getAll', |
'chrome.preferencesPrivate.googleGeolocationAccessEnabled.get', |
@@ -88,14 +88,15 @@ function expectStateMachineCalls( |
testIdentityToken, |
testGeolocationPref, |
testUserRespondedToToast) { |
- var chromeIdentityGetAuthTokenSavedArgs = new SaveMockArguments(); |
+ var authenticationManagerIsSignedInSavedArgs = new SaveMockArguments(); |
mockApisObj.expects(once()). |
- chrome_identity_getAuthToken( |
- chromeIdentityGetAuthTokenSavedArgs.match( |
- eqJSON({interactive: false})), |
- chromeIdentityGetAuthTokenSavedArgs.match(ANYTHING)). |
+ authenticationManager_isSignedIn( |
+ authenticationManagerIsSignedInSavedArgs.match(ANYTHING)). |
will(invokeCallback( |
- chromeIdentityGetAuthTokenSavedArgs, 1, testIdentityToken)); |
+ authenticationManagerIsSignedInSavedArgs, |
+ 0, |
+ !!testIdentityToken, |
+ testIdentityToken)); |
var googleGeolocationPrefGetSavedArgs = new SaveMockArguments(); |
mockApisObj.expects(once()). |