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

Unified Diff: ui/file_manager/file_manager/common/js/importer_common_unittest.js

Issue 1022423005: Move view change analytics tracking into DirectoryModel where implementation details can be hidden. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add FSP extension whitelist so we can report names to analytics rather than extension ids for provi… Created 5 years, 9 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: ui/file_manager/file_manager/common/js/importer_common_unittest.js
diff --git a/ui/file_manager/file_manager/common/js/importer_common_unittest.js b/ui/file_manager/file_manager/common/js/importer_common_unittest.js
index f0694d735c7944a44c5fdff7ab0ddfad648d0071..62944f743c65b6ba2dd071c07151399370fcb0a0 100644
--- a/ui/file_manager/file_manager/common/js/importer_common_unittest.js
+++ b/ui/file_manager/file_manager/common/js/importer_common_unittest.js
@@ -38,10 +38,6 @@ function setUp() {
new MockChromeStorageAPI();
importer.setupTestLogger();
- var cameraFileSystem = new MockFileSystem(
- 'camera-fs', 'filesystem:camera-123');
- var sdFileSystem = new MockFileSystem(
- 'sd-fs', 'filesystem:sd-123');
cameraVolume = MockVolumeManager.createMockVolumeInfo(
VolumeManagerCommon.VolumeType.MTP,
'camera-fs',
@@ -265,6 +261,14 @@ function testCreateMetadataHashcode(callback) {
reportPromise(promise, callback);
}
+function testHasMediaDirectory(callback) {
+ var dir = createDirectoryEntry(sdVolume, '/DCIM');
+ var promise = importer.hasMediaDirectory(sdVolume.fileSystem.root)
+ .then(assertTrue.bind(null));
+
+ reportPromise(promise, callback);
+}
+
/** @param {string} path */
function assertIsMediaDir(path) {
var dir = createDirectoryEntry(sdVolume, path);
@@ -297,4 +301,3 @@ function createDirectoryEntry(volume, path) {
entry.volumeId = volume.volumeId;
return entry;
}
-
« no previous file with comments | « ui/file_manager/file_manager/common/js/importer_common.js ('k') | ui/file_manager/file_manager/common/js/metrics_events.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698