OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 'use strict'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * Extension ID of Files.app. | 8 * Extension ID of Files.app. |
9 * @type {string} | 9 * @type {string} |
10 * @const | 10 * @const |
11 */ | 11 */ |
12 var FILE_MANAGER_EXTENSIONS_ID = 'hhaomjibdihmijegdhdafkllkbggdgoj'; | 12 var FILE_MANAGER_EXTENSIONS_ID = 'hhaomjibdihmijegdhdafkllkbggdgoj'; |
13 | 13 |
14 var remoteCall = new RemoteCallFilesApp(FILE_MANAGER_EXTENSIONS_ID); | 14 var remoteCall = new RemoteCallFilesApp(FILE_MANAGER_EXTENSIONS_ID); |
15 | 15 |
16 /** | 16 /** |
| 17 * Extension ID of Audio Player. |
| 18 * @type {string} |
| 19 * @const |
| 20 */ |
| 21 var AUDIO_PLAYER_APP_ID = 'cjbfomnbifhcdnihkgipgfcihmgjfhbf'; |
| 22 |
| 23 var audioPlayerApp = new RemoteCall(AUDIO_PLAYER_APP_ID); |
| 24 |
| 25 /** |
17 * Wrapper function. | 26 * Wrapper function. |
18 * TODO(yoshiki): remove this. We should use methods in |remoteCall| directly. | 27 * TODO(yoshiki): remove this. We should use methods in |remoteCall| directly. |
19 * | 28 * |
20 * @param {string} func Function name. | 29 * @param {string} func Function name. |
21 * @param {?string} appId Target window's App ID or null for functions | 30 * @param {?string} appId Target window's App ID or null for functions |
22 * not requiring a window. | 31 * not requiring a window. |
23 * @param {Array.<*>} args Array of arguments. | 32 * @param {Array.<*>} args Array of arguments. |
24 * @param {function(*)=} opt_callback Callback handling the function's result. | 33 * @param {function(*)=} opt_callback Callback handling the function's result. |
25 * @return {Promise} Promise to be fulfilled with the result of the remote | 34 * @return {Promise} Promise to be fulfilled with the result of the remote |
26 * utility. | 35 * utility. |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 chrome.test.fail(testCaseName + ' is not found.'); | 461 chrome.test.fail(testCaseName + ' is not found.'); |
453 return; | 462 return; |
454 } | 463 } |
455 // Specify the name of test to the test system. | 464 // Specify the name of test to the test system. |
456 targetTest.generatedName = testCaseName; | 465 targetTest.generatedName = testCaseName; |
457 chrome.test.runTests([targetTest]); | 466 chrome.test.runTests([targetTest]); |
458 } | 467 } |
459 ]; | 468 ]; |
460 steps.shift()(); | 469 steps.shift()(); |
461 }); | 470 }); |
OLD | NEW |