| Index: chrome/browser/resources/google_now/utility_test_util.js
|
| diff --git a/chrome/browser/resources/google_now/utility_test_util.js b/chrome/browser/resources/google_now/utility_test_util.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3ef36d1847641c3b343ab987ae16ecaccfeaa44a
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/google_now/utility_test_util.js
|
| @@ -0,0 +1,18 @@
|
| +// 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
|
| +};
|
| +
|
| +mockChromeEvent(chrome, 'alarms.onAlarm');
|
| +mockChromeEvent(chrome, 'runtime.onSuspend');
|
|
|