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

Side by Side Diff: chromeos/disks/mock_disk_mount_manager.h

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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 (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 #ifndef CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ 5 #ifndef CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_
6 #define CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ 6 #define CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 11
12 #include "base/macros.h"
10 #include "base/observer_list.h" 13 #include "base/observer_list.h"
11 #include "chromeos/dbus/cros_disks_client.h" 14 #include "chromeos/dbus/cros_disks_client.h"
12 #include "chromeos/disks/disk_mount_manager.h" 15 #include "chromeos/disks/disk_mount_manager.h"
13 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
14 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
15 18
16 namespace chromeos { 19 namespace chromeos {
17 namespace disks { 20 namespace disks {
18 21
19 // TODO(tbarzic): Replace this mock with a fake implementation 22 // TODO(tbarzic): Replace this mock with a fake implementation
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 59
57 // Creates a fake disk entry for the mounted device. This function is 60 // Creates a fake disk entry for the mounted device. This function is
58 // primarily for StorageMonitorTest. 61 // primarily for StorageMonitorTest.
59 void CreateDiskEntryForMountDevice( 62 void CreateDiskEntryForMountDevice(
60 const DiskMountManager::MountPointInfo& mount_info, 63 const DiskMountManager::MountPointInfo& mount_info,
61 const std::string& device_id, 64 const std::string& device_id,
62 const std::string& device_label, 65 const std::string& device_label,
63 const std::string& vendor_name, 66 const std::string& vendor_name,
64 const std::string& product_name, 67 const std::string& product_name,
65 DeviceType device_type, 68 DeviceType device_type,
66 uint64 total_size_in_bytes, 69 uint64_t total_size_in_bytes,
67 bool is_parent, 70 bool is_parent,
68 bool has_media, 71 bool has_media,
69 bool on_boot_device, 72 bool on_boot_device,
70 bool on_removable_device); 73 bool on_removable_device);
71 74
72 // Removes the fake disk entry associated with the mounted device. This 75 // Removes the fake disk entry associated with the mounted device. This
73 // function is primarily for StorageMonitorTest. 76 // function is primarily for StorageMonitorTest.
74 void RemoveDiskEntryForMountDevice( 77 void RemoveDiskEntryForMountDevice(
75 const DiskMountManager::MountPointInfo& mount_info); 78 const DiskMountManager::MountPointInfo& mount_info);
76 79
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // The list of existing mount points. 115 // The list of existing mount points.
113 DiskMountManager::MountPointMap mount_points_; 116 DiskMountManager::MountPointMap mount_points_;
114 117
115 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager); 118 DISALLOW_COPY_AND_ASSIGN(MockDiskMountManager);
116 }; 119 };
117 120
118 } // namespace disks 121 } // namespace disks
119 } // namespace chromeos 122 } // namespace chromeos
120 123
121 #endif // CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_ 124 #endif // CHROMEOS_DISKS_MOCK_DISK_MOUNT_MANAGER_H_
OLDNEW
« no previous file with comments | « chromeos/disks/disk_mount_manager_unittest.cc ('k') | chromeos/disks/mock_disk_mount_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698