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 <stddef.h> |
| 6 #include <stdint.h> |
| 7 |
5 #include "base/bind.h" | 8 #include "base/bind.h" |
6 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
7 #include "chromeos/dbus/dbus_thread_manager.h" | 10 #include "chromeos/dbus/dbus_thread_manager.h" |
8 #include "chromeos/dbus/fake_cros_disks_client.h" | 11 #include "chromeos/dbus/fake_cros_disks_client.h" |
9 #include "chromeos/disks/disk_mount_manager.h" | 12 #include "chromeos/disks/disk_mount_manager.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
12 | 15 |
13 using chromeos::disks::DiskMountManager; | 16 using chromeos::disks::DiskMountManager; |
14 using chromeos::CrosDisksClient; | 17 using chromeos::CrosDisksClient; |
(...skipping 13 matching lines...) Expand all Loading... |
28 const char* file_path; | 31 const char* file_path; |
29 const char* device_label; | 32 const char* device_label; |
30 const char* drive_label; | 33 const char* drive_label; |
31 const char* vendor_id; | 34 const char* vendor_id; |
32 const char* vendor_name; | 35 const char* vendor_name; |
33 const char* product_id; | 36 const char* product_id; |
34 const char* product_name; | 37 const char* product_name; |
35 const char* fs_uuid; | 38 const char* fs_uuid; |
36 const char* system_path_prefix; | 39 const char* system_path_prefix; |
37 chromeos::DeviceType device_type; | 40 chromeos::DeviceType device_type; |
38 uint64 size_in_bytes; | 41 uint64_t size_in_bytes; |
39 bool is_parent; | 42 bool is_parent; |
40 bool is_read_only; | 43 bool is_read_only; |
41 bool has_media; | 44 bool has_media; |
42 bool on_boot_device; | 45 bool on_boot_device; |
43 bool on_removable_device; | 46 bool on_removable_device; |
44 bool is_hidden; | 47 bool is_hidden; |
45 }; | 48 }; |
46 | 49 |
47 // Holds information to create a DiskMOuntManager::MountPointInfo instance. | 50 // Holds information to create a DiskMOuntManager::MountPointInfo instance. |
48 struct TestMountPointInfo { | 51 struct TestMountPointInfo { |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 EXPECT_EQ("/device/source_path", | 572 EXPECT_EQ("/device/source_path", |
570 fake_cros_disks_client_->last_format_device_path()); | 573 fake_cros_disks_client_->last_format_device_path()); |
571 EXPECT_EQ("vfat", fake_cros_disks_client_->last_format_filesystem()); | 574 EXPECT_EQ("vfat", fake_cros_disks_client_->last_format_filesystem()); |
572 | 575 |
573 // Simulate cros_disks reporting success. | 576 // Simulate cros_disks reporting success. |
574 fake_cros_disks_client_->SendFormatCompletedEvent( | 577 fake_cros_disks_client_->SendFormatCompletedEvent( |
575 chromeos::FORMAT_ERROR_NONE, "/device/source_path"); | 578 chromeos::FORMAT_ERROR_NONE, "/device/source_path"); |
576 } | 579 } |
577 | 580 |
578 } // namespace | 581 } // namespace |
OLD | NEW |