OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/storage_monitor/test_storage_monitor.h" | 5 #include "components/storage_monitor/test_storage_monitor.h" |
6 | 6 |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/synchronization/waitable_event.h" | 8 #include "base/synchronization/waitable_event.h" |
| 9 #include "build/build_config.h" |
9 #include "components/storage_monitor/storage_info.h" | 10 #include "components/storage_monitor/storage_info.h" |
10 | 11 |
11 #if defined(OS_LINUX) | 12 #if defined(OS_LINUX) |
12 #include "components/storage_monitor/test_media_transfer_protocol_manager_linux.
h" | 13 #include "components/storage_monitor/test_media_transfer_protocol_manager_linux.
h" |
13 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h" //
nogncheck | 14 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h" //
nogncheck |
14 #endif | 15 #endif |
15 | 16 |
16 namespace storage_monitor { | 17 namespace storage_monitor { |
17 | 18 |
18 TestStorageMonitor::TestStorageMonitor() | 19 TestStorageMonitor::TestStorageMonitor() |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 ejected_device_ = device_id; | 129 ejected_device_ = device_id; |
129 callback.Run(EJECT_OK); | 130 callback.Run(EJECT_OK); |
130 } | 131 } |
131 | 132 |
132 void TestStorageMonitor::AddRemovablePath(const base::FilePath& path) { | 133 void TestStorageMonitor::AddRemovablePath(const base::FilePath& path) { |
133 CHECK(path.IsAbsolute()); | 134 CHECK(path.IsAbsolute()); |
134 removable_paths_.push_back(path); | 135 removable_paths_.push_back(path); |
135 } | 136 } |
136 | 137 |
137 } // namespace storage_monitor | 138 } // namespace storage_monitor |
OLD | NEW |