| Index: chrome/test/data/extensions/api_test/file_manager_browsertest/video_player/test_helper_on_ui_page.js
|
| diff --git a/chrome/test/data/extensions/api_test/file_manager_browsertest/video_player/test_helper_on_ui_page.js b/chrome/test/data/extensions/api_test/file_manager_browsertest/video_player/test_helper_on_ui_page.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0e9f95e4defff1437e0aeace82d61388555f7676
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/api_test/file_manager_browsertest/video_player/test_helper_on_ui_page.js
|
| @@ -0,0 +1,15 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +'use strict';
|
| +
|
| +/**
|
| + * Overrides fileBrowserPrivate.getDownloadUrl
|
| + * @param {string} url
|
| + * @param {function(string)} callback
|
| + */
|
| +chrome.fileBrowserPrivate.getDownloadUrl = function(url, callback) {
|
| + var dummyUrl = 'http://example.com/test.mp4?access_token=ACCESSTOKEN;
|
| + setTimeout(callback.bind(null, dummyUrl));
|
| +};
|
|
|