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

Unified Diff: ui/file_manager/file_manager/background/js/device_handler_unittest.js

Issue 955313002: Files.app: Disable the cloud import notification for active g+ photos app users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback; fix tests. Created 5 years, 10 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
« no previous file with comments | « ui/file_manager/file_manager/background/js/device_handler.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/background/js/device_handler_unittest.js
diff --git a/ui/file_manager/file_manager/background/js/device_handler_unittest.js b/ui/file_manager/file_manager/background/js/device_handler_unittest.js
index a5266085023e7f7ac43ec24effb103a422bd9a1b..8c3510898682b03410999764fafe060773710876 100644
--- a/ui/file_manager/file_manager/background/js/device_handler_unittest.js
+++ b/ui/file_manager/file_manager/background/js/device_handler_unittest.js
@@ -152,49 +152,6 @@ function testMtpMediaDeviceWithImportEnabled(callback) {
reportPromise(resolver.promise, callback);
}
-function testMediaDeviceWithImportEnabledAndPhotosAppImportEnabled(callback) {
- var storage = new MockChromeStorageAPI();
- chrome.commandLinePrivate.cloudImportDisabled = false;
-
- setupFileSystem(
- VolumeManagerCommon.VolumeType.REMOVABLE,
- 'blabbity',
- [
- '/DCIM/',
- '/DCIM/grandma.jpg'
- ]);
-
- var promise = importer.handlePhotosAppMessage(true)
- .then(
- function() {
- chrome.fileManagerPrivate.onMountCompleted.dispatch({
- eventType: 'mount',
- status: 'success',
- volumeMetadata: {
- volumeId: 'blabbity',
- isParentDevice: true,
- deviceType: 'usb',
- devicePath: '/device/path',
- deviceLabel: 'label',
- hasMedia: true
- },
- shouldNotify: true
- });
-
- return chrome.notifications.resolver.promise.then(
- function(notifications) {
- assertEquals(1, Object.keys(notifications).length);
- assertEquals(
- 'DEVICE_IMPORT',
- notifications[
- 'deviceImport:/device/path'].message,
- 'Device notification did not have the right message.');
- });
- });
-
- reportPromise(promise, callback);
-}
-
function testMediaDeviceWithImportDisabled(callback) {
chrome.commandLinePrivate.cloudImportDisabled = true;
« no previous file with comments | « ui/file_manager/file_manager/background/js/device_handler.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698