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/extensions/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/prefs/pref_service.h" | 11 #include "base/prefs/pref_service.h" |
12 #include "chrome/browser/chromeos/extensions/file_manager/volume_manager_observe
r.h" | 12 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h" |
13 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
14 #include "chrome/test/base/testing_profile.h" | 14 #include "chrome/test/base/testing_profile.h" |
15 #include "chromeos/disks/disk_mount_manager.h" | 15 #include "chromeos/disks/disk_mount_manager.h" |
16 #include "content/public/test/test_browser_thread_bundle.h" | 16 #include "content/public/test/test_browser_thread_bundle.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace file_manager { | 19 namespace file_manager { |
20 namespace { | 20 namespace { |
21 | 21 |
22 // Fake implementation of DiskMountManager. | 22 // Fake implementation of DiskMountManager. |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 EXPECT_EQ(LoggingObserver::Event::FORMAT_COMPLETED, event.type); | 532 EXPECT_EQ(LoggingObserver::Event::FORMAT_COMPLETED, event.type); |
533 EXPECT_EQ("device1", event.device_path); | 533 EXPECT_EQ("device1", event.device_path); |
534 EXPECT_FALSE(event.success); | 534 EXPECT_FALSE(event.success); |
535 | 535 |
536 EXPECT_EQ(0U, disk_mount_manager_->mount_requests().size()); | 536 EXPECT_EQ(0U, disk_mount_manager_->mount_requests().size()); |
537 | 537 |
538 volume_manager_->RemoveObserver(&observer); | 538 volume_manager_->RemoveObserver(&observer); |
539 } | 539 } |
540 | 540 |
541 } // namespace file_manager | 541 } // namespace file_manager |
OLD | NEW |