Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / resources / google_now / utility_test_util.js
blobd06f43c8e4958c36d0bb35a1fe868f36acf431ba
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 utility.js.
7 var localStorage = {};
9 chrome['alarms'] = {
10   get: emptyMock
12 chrome['identity'] = {
13   getAuthToken: emptyMock,
14   removeCachedAuthToken: emptyMock
16 chrome['webstorePrivate'] = {
17   getBrowserLogin: emptyMock
20 mockChromeEvent(chrome, 'alarms.onAlarm');
21 mockChromeEvent(chrome, 'identity.onSignInChanged');
22 mockChromeEvent(chrome, 'runtime.onSuspend');