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

Side by Side Diff: chrome/test/data/extensions/api_test/file_manager_browsertest/file_manager/background.js

Issue 641283002: Separate the audio player app from Files.app Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up Created 6 years, 2 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 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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698