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

Side by Side Diff: chrome/browser/resources/google_now/background_unittest.gtestjs

Issue 19749007: Processing timefences from the server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: arv@ notes Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * Test fixture for ../background.js. 6 * Test fixture for background.js.
7 * @constructor 7 * @constructor
8 * @extends {testing.Test} 8 * @extends {testing.Test}
9 */ 9 */
10 function GoogleNowBackgroundUnitTest () { 10 function GoogleNowBackgroundUnitTest () {
11 testing.Test.call(this); 11 testing.Test.call(this);
12 } 12 }
13 13
14 GoogleNowBackgroundUnitTest.prototype = { 14 GoogleNowBackgroundUnitTest.prototype = {
15 __proto__: testing.Test.prototype, 15 __proto__: testing.Test.prototype,
16 16
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 chromeTabsCreateSavedArgs.match(eqJSON({url: testActionUrl})), 369 chromeTabsCreateSavedArgs.match(eqJSON({url: testActionUrl})),
370 chromeTabsCreateSavedArgs.match(ANYTHING)). 370 chromeTabsCreateSavedArgs.match(ANYTHING)).
371 will(invokeCallback(chromeTabsCreateSavedArgs, 1, testCreatedTab)); 371 will(invokeCallback(chromeTabsCreateSavedArgs, 1, testCreatedTab));
372 this.mockApis.expects(once()).chrome_windows_create( 372 this.mockApis.expects(once()).chrome_windows_create(
373 eqJSON({url: testActionUrl})); 373 eqJSON({url: testActionUrl}));
374 374
375 // Invoking the tested function. 375 // Invoking the tested function.
376 onNotificationClicked( 376 onNotificationClicked(
377 testNotificationId, this.mockLocalFunctions.functions().selector); 377 testNotificationId, this.mockLocalFunctions.functions().selector);
378 }); 378 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/google_now/background_test_util.js ('k') | chrome/browser/resources/google_now/cards.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698