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

Side by Side Diff: chrome/browser/resources/google_now/background_test_util.js

Issue 27223006: Requesting cards on push messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More rgustafson's comments Created 7 years, 2 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 // Mocks for globals needed for loading background.js. 5 // Mocks for globals needed for loading background.js.
6 6
7 var wrapper = {instrumentChromeApiFunction: emptyMock}; 7 var wrapper = {instrumentChromeApiFunction: emptyMock};
8 8
9 function buildAuthenticationManager() { 9 function buildAuthenticationManager() {
10 return { 10 return {
11 addListener: emptyMock 11 addListener: emptyMock
12 }; 12 };
13 } 13 }
14 14
15 var instrumentApiFunction = emptyMock; 15 var instrumentApiFunction = emptyMock;
16 var buildTaskManager = emptyMock; 16 var buildTaskManager = emptyMock;
17 var buildAttemptManager = emptyMock; 17 var buildAttemptManager = emptyMock;
18 var buildCardSet = emptyMock; 18 var buildCardSet = emptyMock;
19 19
20 var instrumented = {}; 20 var instrumented = {};
21 mockChromeEvent(instrumented, 'location.onLocationUpdate'); 21 mockChromeEvent(instrumented, 'location.onLocationUpdate');
22 mockChromeEvent(instrumented, 'notifications.onButtonClicked'); 22 mockChromeEvent(instrumented, 'notifications.onButtonClicked');
23 mockChromeEvent(instrumented, 'notifications.onClicked'); 23 mockChromeEvent(instrumented, 'notifications.onClicked');
24 mockChromeEvent(instrumented, 'notifications.onClosed'); 24 mockChromeEvent(instrumented, 'notifications.onClosed');
25 mockChromeEvent(instrumented, 'omnibox.onInputEntered'); 25 mockChromeEvent(instrumented, 'omnibox.onInputEntered');
26 mockChromeEvent( 26 mockChromeEvent(
27 instrumented, 'preferencesPrivate.googleGeolocationAccessEnabled.onChange'); 27 instrumented, 'preferencesPrivate.googleGeolocationAccessEnabled.onChange');
28 mockChromeEvent(instrumented, 'pushMessaging.onMessage');
28 mockChromeEvent(instrumented, 'runtime.onInstalled'); 29 mockChromeEvent(instrumented, 'runtime.onInstalled');
29 mockChromeEvent(instrumented, 'runtime.onStartup'); 30 mockChromeEvent(instrumented, 'runtime.onStartup');
OLDNEW
« no previous file with comments | « chrome/browser/resources/google_now/background.js ('k') | chrome/browser/resources/google_now/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698