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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/device_event_router_unittest.cc

Issue 490643005: Files.app: Start to use DeviceEventRouter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 4 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/browser/chromeos/extensions/file_manager/device_event_router_unittest.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/device_event_router_unittest.cc b/chrome/browser/chromeos/extensions/file_manager/device_event_router_unittest.cc
index 72e0d6d67da3e40ec0e743aae9c212e956ad67a4..7b1a560c14c0fb8ed8470b880fe175140e399336 100644
--- a/chrome/browser/chromeos/extensions/file_manager/device_event_router_unittest.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/device_event_router_unittest.cc
@@ -140,7 +140,7 @@ TEST_F(DeviceEventRouterTest, DeviceScan) {
device_event_router->OnDiskRemoved(disk_unmounted);
device_event_router->OnDeviceRemoved("/device/test");
ASSERT_EQ(2u, device_event_router->events.size());
- EXPECT_EQ(file_browser_private::DEVICE_EVENT_TYPE_ADDED,
+ EXPECT_EQ(file_browser_private::DEVICE_EVENT_TYPE_SCAN_STARTED,
device_event_router->events[0].type);
EXPECT_EQ("/device/test", device_event_router->events[0].device_path);
EXPECT_EQ(file_browser_private::DEVICE_EVENT_TYPE_REMOVED,
@@ -159,10 +159,10 @@ TEST_F(DeviceEventRouterTest, DeviceScanCancelled) {
device_event_router->OnDiskRemoved(disk_unmounted);
device_event_router->OnDeviceRemoved("/device/test");
ASSERT_EQ(3u, device_event_router->events.size());
- EXPECT_EQ(file_browser_private::DEVICE_EVENT_TYPE_ADDED,
+ EXPECT_EQ(file_browser_private::DEVICE_EVENT_TYPE_SCAN_STARTED,
device_event_router->events[0].type);
EXPECT_EQ("/device/test", device_event_router->events[0].device_path);
- EXPECT_EQ(file_browser_private::DEVICE_EVENT_TYPE_SCAN_CANCELED,
+ EXPECT_EQ(file_browser_private::DEVICE_EVENT_TYPE_SCAN_CANCELLED,
device_event_router->events[1].type);
EXPECT_EQ("/device/test", device_event_router->events[1].device_path);
EXPECT_EQ(file_browser_private::DEVICE_EVENT_TYPE_REMOVED,

Powered by Google App Engine
This is Rietveld 408576698