Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / resources / google_now / background_test_util.js
blobf68356c9932c3fe1c9d6baa2e5722915412365da
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
3 // found in the LICENSE file.
5 // Mocks for globals needed for loading background.js.
7 var wrapper = {instrumentChromeApiFunction: emptyMock};
9 function buildAuthenticationManager() {
10   return {
11     addListener: emptyMock
12   };
15 var instrumentApiFunction = emptyMock;
16 var buildTaskManager = emptyMock;
17 var buildAttemptManager = emptyMock;
18 var buildCardSet = emptyMock;
20 var instrumented = {};
21 mockChromeEvent(instrumented, 'location.onLocationUpdate');
22 mockChromeEvent(instrumented, 'notifications.onButtonClicked');
23 mockChromeEvent(instrumented, 'notifications.onClicked');
24 mockChromeEvent(instrumented, 'notifications.onClosed');
25 mockChromeEvent(instrumented, 'notifications.onPermissionLevelChanged');
26 mockChromeEvent(instrumented, 'notifications.onShowSettings');
27 mockChromeEvent(
28     instrumented, 'preferencesPrivate.googleGeolocationAccessEnabled.onChange');
29 mockChromeEvent(instrumented, 'pushMessaging.onMessage');
30 mockChromeEvent(instrumented, 'runtime.onInstalled');
31 mockChromeEvent(instrumented, 'runtime.onStartup');