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

Side by Side Diff: chrome/browser/chromeos/file_manager/volume_manager_unittest.cc

Issue 1192493003: Move browser-agnostic code from file_system_util to file_system_core_util. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@drive-prefservice
Patch Set: Rebasing... Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/file_manager/volume_manager.h" 5 #include "chrome/browser/chromeos/file_manager/volume_manager.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "chrome/browser/chromeos/drive/file_system_util.h"
14 #include "chrome/browser/chromeos/file_manager/fake_disk_mount_manager.h" 15 #include "chrome/browser/chromeos/file_manager/fake_disk_mount_manager.h"
15 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h" 16 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h"
16 #include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system .h" 17 #include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system .h"
17 #include "chrome/browser/chromeos/file_system_provider/service.h" 18 #include "chrome/browser/chromeos/file_system_provider/service.h"
18 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
19 #include "chrome/test/base/testing_profile.h" 20 #include "chrome/test/base/testing_profile.h"
20 #include "chromeos/dbus/fake_power_manager_client.h" 21 #include "chromeos/dbus/fake_power_manager_client.h"
21 #include "chromeos/disks/disk_mount_manager.h" 22 #include "chromeos/disks/disk_mount_manager.h"
22 #include "components/storage_monitor/storage_info.h" 23 #include "components/storage_monitor/storage_info.h"
23 #include "content/public/test/test_browser_thread_bundle.h" 24 #include "content/public/test/test_browser_thread_bundle.h"
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 // Detach 871 // Detach
871 volume_manager()->OnRemovableStorageDetached(info); 872 volume_manager()->OnRemovableStorageDetached(info);
872 ASSERT_EQ(2u, observer.events().size()); 873 ASSERT_EQ(2u, observer.events().size());
873 EXPECT_EQ(LoggingObserver::Event::VOLUME_UNMOUNTED, 874 EXPECT_EQ(LoggingObserver::Event::VOLUME_UNMOUNTED,
874 observer.events()[1].type); 875 observer.events()[1].type);
875 876
876 EXPECT_FALSE(volume.get()); 877 EXPECT_FALSE(volume.get());
877 } 878 }
878 879
879 } // namespace file_manager 880 } // namespace file_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698