Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 /** | 5 /** |
| 6 * Mock out the chrome.fileBrowserPrivate API for use in the harness. | 6 * Mock out the chrome.fileBrowserPrivate API for use in the harness. |
| 7 */ | 7 */ |
| 8 chrome.fileBrowserPrivate = { | 8 chrome.fileBrowserPrivate = { |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 177 CONFIRM_DELETE: 'Are you sure?', | 177 CONFIRM_DELETE: 'Are you sure?', |
| 178 }); | 178 }); |
| 179 } | 179 } |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 chrome.extension = { | 182 chrome.extension = { |
| 183 getURL: function() { | 183 getURL: function() { |
| 184 return document.location.href; | 184 return document.location.href; |
| 185 } | 185 } |
| 186 }; | 186 }; |
| 187 | |
| 188 chrome.test = { | |
|
rginda
2011/06/07 22:58:14
Needed to run harness.html after jamescook's recen
| |
| 189 sendMessage: function(msg) { | |
| 190 console.log('chrome.test.sendMessage: ' + msg); | |
| 191 } | |
| 192 }; | |
| OLD | NEW |