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

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

Issue 17125003: First unit test for Google Now extension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modifying .isolate dependencies Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/resources/google_now/background_unittest.gtestjs » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 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 background.js.
6
7 function emptyMock() {}
8 function buildTaskManager() {
9 return {instrumentApiFunction: emptyMock};
10 }
11 var instrumentApiFunction = emptyMock;
12 var buildAttemptManager = emptyMock;
13 var emptyListener = {addListener: emptyMock};
14 chrome['location'] = {onLocationUpdate: emptyListener};
15 chrome['notifications'] = {
16 onButtonClicked: emptyListener,
17 onClicked: emptyListener,
18 onClosed: emptyListener
19 };
20 chrome['omnibox'] = {onInputEntered: emptyListener};
21 chrome['runtime'] = {
22 onInstalled: emptyListener,
23 onStartup: emptyListener
24 };
25 var storage = {};
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/google_now/background_unittest.gtestjs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698