| OLD | NEW |
| 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 <stddef.h> |
| 8 |
| 7 #include <string> | 9 #include <string> |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/basictypes.h" | 12 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 12 #include "base/prefs/pref_service.h" | 14 #include "base/prefs/pref_service.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 14 #include "chrome/browser/chromeos/drive/file_system_util.h" | 16 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 15 #include "chrome/browser/chromeos/file_manager/fake_disk_mount_manager.h" | 17 #include "chrome/browser/chromeos/file_manager/fake_disk_mount_manager.h" |
| 16 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h" | 18 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h" |
| 17 #include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system
.h" | 19 #include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system
.h" |
| 18 #include "chrome/browser/chromeos/file_system_provider/service.h" | 20 #include "chrome/browser/chromeos/file_system_provider/service.h" |
| 19 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
| 20 #include "chrome/test/base/testing_profile.h" | 22 #include "chrome/test/base/testing_profile.h" |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 // Detach | 873 // Detach |
| 872 volume_manager()->OnRemovableStorageDetached(info); | 874 volume_manager()->OnRemovableStorageDetached(info); |
| 873 ASSERT_EQ(2u, observer.events().size()); | 875 ASSERT_EQ(2u, observer.events().size()); |
| 874 EXPECT_EQ(LoggingObserver::Event::VOLUME_UNMOUNTED, | 876 EXPECT_EQ(LoggingObserver::Event::VOLUME_UNMOUNTED, |
| 875 observer.events()[1].type); | 877 observer.events()[1].type); |
| 876 | 878 |
| 877 EXPECT_FALSE(volume.get()); | 879 EXPECT_FALSE(volume.get()); |
| 878 } | 880 } |
| 879 | 881 |
| 880 } // namespace file_manager | 882 } // namespace file_manager |
| OLD | NEW |