| OLD | NEW |
| (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 = {}; |
| OLD | NEW |