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.
4
5// Mocks for globals needed for loading background.js.
6
7var wrapper = {instrumentChromeApiFunction: emptyMock};
8
9function buildAuthenticationManager() {
10  return {
11    addListener: emptyMock
12  };
13}
14
15var instrumentApiFunction = emptyMock;
16var buildTaskManager = emptyMock;
17var buildAttemptManager = emptyMock;
18var buildCardSet = emptyMock;
19
20var instrumented = {};
21mockChromeEvent(instrumented, 'notifications.onButtonClicked');
22mockChromeEvent(instrumented, 'notifications.onClicked');
23mockChromeEvent(instrumented, 'notifications.onClosed');
24mockChromeEvent(instrumented, 'notifications.onPermissionLevelChanged');
25mockChromeEvent(instrumented, 'notifications.onShowSettings');
26mockChromeEvent(instrumented, 'pushMessaging.onMessage');
27mockChromeEvent(instrumented, 'runtime.onInstalled');
28mockChromeEvent(instrumented, 'runtime.onStartup');
29mockChromeEvent(instrumented, 'storage.onChanged');
30
31NOTIFICATION_CARDS_URL = 'https://test/';
32navigator = {language: 'en-US'};
33