OLD | NEW |
---|---|
(Empty) | |
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 utility.js. | |
6 | |
7 var localStorage = {}; | |
8 | |
9 chrome['alarms'] = { | |
arv (Not doing code reviews)
2013/09/03 22:54:50
why not chrome.alarms?
vadimt
2013/09/03 23:17:37
This would cause presubmit errors.
| |
10 get: emptyMock | |
11 }; | |
12 chrome['identity'] = { | |
13 getAuthToken: emptyMock, | |
14 removeCachedAuthToken: emptyMock | |
15 }; | |
16 | |
17 mockChromeEvent(chrome, 'alarms.onAlarm'); | |
18 mockChromeEvent(chrome, 'runtime.onSuspend'); | |
OLD | NEW |