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

Side by Side Diff: components/storage_monitor/test_storage_monitor.h

Issue 1884743002: Convert a few components from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lint Created 4 years, 8 months 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 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
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_
OLDNEW
« no previous file with comments | « components/storage_monitor/storage_monitor_win_unittest.cc ('k') | components/storage_monitor/test_storage_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698