OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
7 #include "chromeos/dbus/fake_cros_disks_client.h" | 7 #include "chromeos/dbus/fake_cros_disks_client.h" |
8 #include "chromeos/dbus/mock_dbus_thread_manager_without_gmock.h" | 8 #include "chromeos/dbus/mock_dbus_thread_manager_without_gmock.h" |
9 #include "chromeos/disks/disk_mount_manager.h" | 9 #include "chromeos/disks/disk_mount_manager.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 using chromeos::disks::DiskMountManager; | 13 using chromeos::disks::DiskMountManager; |
14 using chromeos::CrosDisksClient; | 14 using chromeos::CrosDisksClient; |
15 using chromeos::DBusThreadManager; | 15 using chromeos::DBusThreadManager; |
16 using chromeos::FakeCrosDisksClient; | 16 using chromeos::FakeCrosDisksClient; |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 EXPECT_EQ("vfat", | 625 EXPECT_EQ("vfat", |
626 fake_cros_disks_client_->last_format_device_filesystem()); | 626 fake_cros_disks_client_->last_format_device_filesystem()); |
627 | 627 |
628 // Simulate cros_disks reporting success. | 628 // Simulate cros_disks reporting success. |
629 fake_cros_disks_client_->SendMountEvent( | 629 fake_cros_disks_client_->SendMountEvent( |
630 chromeos::CROS_DISKS_FORMATTING_FINISHED, "/device/source_path"); | 630 chromeos::CROS_DISKS_FORMATTING_FINISHED, "/device/source_path"); |
631 } | 631 } |
632 | 632 |
633 } // namespace | 633 } // namespace |
634 | 634 |
OLD | NEW |