summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/google_now/utility_test_util.js
blob: d06f43c8e4958c36d0bb35a1fe868f36acf431ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Mocks for globals needed for loading utility.js.

var localStorage = {};

chrome['alarms'] = {
  get: emptyMock
};
chrome['identity'] = {
  getAuthToken: emptyMock,
  removeCachedAuthToken: emptyMock
};
chrome['webstorePrivate'] = {
  getBrowserLogin: emptyMock
};

mockChromeEvent(chrome, 'alarms.onAlarm');
mockChromeEvent(chrome, 'identity.onSignInChanged');
mockChromeEvent(chrome, 'runtime.onSuspend');