| 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 #ifndef COMPONENTS_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_ | 5 #ifndef COMPONENTS_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_ |
| 6 #define COMPONENTS_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_ | 6 #define COMPONENTS_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 11 #include "components/storage_monitor/storage_monitor.h" | 12 #include "components/storage_monitor/storage_monitor.h" |
| 12 | 13 |
| 13 namespace storage_monitor { | 14 namespace storage_monitor { |
| 14 | 15 |
| 15 class TestStorageMonitor : public StorageMonitor { | 16 class TestStorageMonitor : public StorageMonitor { |
| 16 public: | 17 public: |
| 17 TestStorageMonitor(); | 18 TestStorageMonitor(); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // Whether TestStorageMonitor::Init() has been called for not. | 67 // Whether TestStorageMonitor::Init() has been called for not. |
| 67 bool init_called_; | 68 bool init_called_; |
| 68 | 69 |
| 69 // The last device to be ejected. | 70 // The last device to be ejected. |
| 70 std::string ejected_device_; | 71 std::string ejected_device_; |
| 71 | 72 |
| 72 // Paths considered for testing purposes to be on removable storage. | 73 // Paths considered for testing purposes to be on removable storage. |
| 73 std::vector<base::FilePath> removable_paths_; | 74 std::vector<base::FilePath> removable_paths_; |
| 74 | 75 |
| 75 #if defined(OS_LINUX) | 76 #if defined(OS_LINUX) |
| 76 scoped_ptr<device::MediaTransferProtocolManager> | 77 std::unique_ptr<device::MediaTransferProtocolManager> |
| 77 media_transfer_protocol_manager_; | 78 media_transfer_protocol_manager_; |
| 78 #endif | 79 #endif |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace storage_monitor | 82 } // namespace storage_monitor |
| 82 | 83 |
| 83 #endif // COMPONENTS_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_ | 84 #endif // COMPONENTS_STORAGE_MONITOR_TEST_STORAGE_MONITOR_H_ |
| OLD | NEW |