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 8b902afd1b624afd4976242ceb2e2681ba7b45d0..7cd66f51373fb2a18014299beb5e491494a88642 100644 |
--- a/chrome/browser/resources/google_now/background_unittest.gtestjs |
+++ b/chrome/browser/resources/google_now/background_unittest.gtestjs |
@@ -480,8 +480,10 @@ TEST_F( |
expectChromeLocalStorageGet( |
this, testNotificationDataRequest, testNotificationData); |
- this.mockLocalFunctions.expects(once()).selector(undefined).will( |
- returnValue(undefined)); |
+ this.mockLocalFunctions.expects(once()) |
+ .selector(eqJSON( |
+ testNotificationData.notificationsData[testNotificationId])) |
+ .will(returnValue(undefined)); |
// Invoking the tested function. |
onNotificationClicked( |
@@ -509,8 +511,10 @@ TEST_F( |
expectChromeLocalStorageGet( |
this, testNotificationDataRequest, testNotificationData); |
- this.mockLocalFunctions.expects(once()).selector(testActionUrls).will( |
- returnValue(testActionUrl)); |
+ this.mockLocalFunctions.expects(once()) |
+ .selector(eqJSON( |
+ testNotificationData.notificationsData[testNotificationId])) |
+ .will(returnValue(testActionUrl)); |
var chromeTabsCreateSavedArgs = new SaveMockArguments(); |
this.mockApis.expects(once()). |
instrumented_tabs_create( |
@@ -549,8 +553,10 @@ TEST_F( |
expectChromeLocalStorageGet( |
this, testNotificationDataRequest, testNotificationData); |
- this.mockLocalFunctions.expects(once()).selector(testActionUrls).will( |
- returnValue(testActionUrl)); |
+ this.mockLocalFunctions.expects(once()) |
+ .selector(eqJSON( |
+ testNotificationData.notificationsData[testNotificationId])) |
+ .will(returnValue(testActionUrl)); |
var chromeTabsCreateSavedArgs = new SaveMockArguments(); |
this.mockApis.expects(once()). |
instrumented_tabs_create( |