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

Unified Diff: chrome/test/data/extensions/api_test/file_manager_browsertest/video_player/test_helper_on_ui_page.js

Issue 505043002: Files.app Test: check the cast icon in drive volume (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a test Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
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));
+};

Powered by Google App Engine
This is Rietveld 408576698