Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Side by Side Diff: chrome/browser/resources/google_now/utility_test_util.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Mocks for globals needed for loading utility.js. 5 // Mocks for globals needed for loading utility.js.
6 6
7 var localStorage = {}; 7 var localStorage = {};
8 8
9 chrome['alarms'] = { 9 chrome['alarms'] = {
10 get: emptyMock 10 get: emptyMock
11 }; 11 };
12 chrome['identity'] = { 12 chrome['identity'] = {
13 getAuthToken: emptyMock, 13 getAuthToken: emptyMock,
14 removeCachedAuthToken: emptyMock 14 removeCachedAuthToken: emptyMock
15 }; 15 };
16 chrome['storage'] = { 16 chrome['storage'] = {
17 local: { 17 local: {get: emptyMock}
18 get: emptyMock
19 }
20 }; 18 };
21 chrome['webstorePrivate'] = { 19 chrome['webstorePrivate'] = {
22 getBrowserLogin: emptyMock 20 getBrowserLogin: emptyMock
23 }; 21 };
24 22
25 mockChromeEvent(chrome, 'alarms.onAlarm'); 23 mockChromeEvent(chrome, 'alarms.onAlarm');
26 mockChromeEvent(chrome, 'identity.onSignInChanged'); 24 mockChromeEvent(chrome, 'identity.onSignInChanged');
27 mockChromeEvent(chrome, 'runtime.onSuspend'); 25 mockChromeEvent(chrome, 'runtime.onSuspend');
OLDNEW
« no previous file with comments | « chrome/browser/resources/google_now/utility.js ('k') | chrome/browser/resources/hangout_services/thunk.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698