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

Unified Diff: chrome/test/data/file_manager/unit_tests/mocks/mock_file_entry.js

Issue 340843005: Files.app: Create unit tests for MetadataCache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 6 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/file_manager/unit_tests/mocks/mock_file_entry.js
diff --git a/chrome/test/data/file_manager/unit_tests/mocks/mock_file_entry.js b/chrome/test/data/file_manager/unit_tests/mocks/mock_file_entry.js
index f1cbce349dc85a611ef105405a85234e0915dd8f..c16a63d395716d4dfe9ff4dbc8ad5ad327481ff5 100644
--- a/chrome/test/data/file_manager/unit_tests/mocks/mock_file_entry.js
+++ b/chrome/test/data/file_manager/unit_tests/mocks/mock_file_entry.js
@@ -13,3 +13,12 @@ function MockFileEntry(volumeId, fullPath) {
this.volumeId = volumeId;
this.fullPath = fullPath;
}
+
+/**
+ * Returns fake URL.
+ *
+ * @return {string} Fake URL.
+ */
+MockFileEntry.prototype.toURL = function() {
+ return 'filesystem:' + this.volumeId + this.fullPath;
+};

Powered by Google App Engine
This is Rietveld 408576698