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

Unified Diff: chrome/browser/storage_monitor/storage_monitor_win_unittest.cc

Issue 15767005: [MediaGalleries] Add temp dir adjustment in windows unit test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix syntax Created 7 years, 7 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 | « no previous file | chrome/browser/storage_monitor/test_volume_mount_watcher_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/storage_monitor/storage_monitor_win_unittest.cc
diff --git a/chrome/browser/storage_monitor/storage_monitor_win_unittest.cc b/chrome/browser/storage_monitor/storage_monitor_win_unittest.cc
index a90dc444dce481fd82fd55cfe53deae16ee4285f..da10397bff9d329f9f9e94def943280bed9a343a 100644
--- a/chrome/browser/storage_monitor/storage_monitor_win_unittest.cc
+++ b/chrome/browser/storage_monitor/storage_monitor_win_unittest.cc
@@ -151,7 +151,7 @@ void StorageMonitorWinTest::DoMassStorageDeviceAttachedTest(
volume_broadcast.dbcv_unitmask = 0x0;
volume_broadcast.dbcv_flags = 0x0;
- int expect_attach_calls = 0;
+ int expect_attach_calls = observer_.attach_calls();
for (DeviceIndices::const_iterator it = device_indices.begin();
it != device_indices.end(); ++it) {
volume_broadcast.dbcv_unitmask |= 0x1 << *it;
@@ -291,6 +291,7 @@ TEST_F(StorageMonitorWinTest, DevicesAttached) {
TEST_F(StorageMonitorWinTest, PathMountDevices) {
PreAttachDevices();
+ int init_storages = monitor_->GetAttachedStorage().size();
volume_mount_watcher_->AddDeviceForTesting(
base::FilePath(FILE_PATH_LITERAL("F:\\mount1")),
@@ -302,7 +303,7 @@ TEST_F(StorageMonitorWinTest, PathMountDevices) {
base::FilePath(FILE_PATH_LITERAL("F:\\mount2")),
"dcim:mount2", L"mount2", 100);
RunUntilIdle();
- EXPECT_EQ(9, monitor_->GetAttachedStorage().size());
+ EXPECT_EQ(init_storages + 3, monitor_->GetAttachedStorage().size());
StorageInfo info;
EXPECT_TRUE(monitor_->GetStorageInfoForPath(
« no previous file with comments | « no previous file | chrome/browser/storage_monitor/test_volume_mount_watcher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698