OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // TestVolumeMountWatcherWin implementation. | 5 // TestVolumeMountWatcherWin implementation. |
6 | 6 |
7 #include "chrome/browser/storage_monitor/test_volume_mount_watcher_win.h" | 7 #include "chrome/browser/storage_monitor/test_volume_mount_watcher_win.h" |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "chrome/browser/storage_monitor/storage_info.h" | 13 #include "chrome/browser/storage_monitor/storage_info.h" |
14 | 14 |
15 namespace chrome { | 15 namespace chrome { |
16 namespace test { | 16 namespace test { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 base::FilePath GetTempRoot() { | 20 base::FilePath GetTempRoot() { |
21 base::ScopedTempDir temp_dir; | 21 base::ScopedTempDir temp_dir; |
22 temp_dir.CreateUniqueTempDir(); | 22 temp_dir.CreateUniqueTempDir(); |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 return base::Bind(&FakeGetAttachedDevices); | 150 return base::Bind(&FakeGetAttachedDevices); |
151 return base::Bind(&FakeGetSingleAttachedDevice); | 151 return base::Bind(&FakeGetSingleAttachedDevice); |
152 } | 152 } |
153 | 153 |
154 void TestVolumeMountWatcherWin::ShutdownWorkerPool() { | 154 void TestVolumeMountWatcherWin::ShutdownWorkerPool() { |
155 device_info_worker_pool_->Shutdown(); | 155 device_info_worker_pool_->Shutdown(); |
156 } | 156 } |
157 | 157 |
158 } // namespace test | 158 } // namespace test |
159 } // namespace chrome | 159 } // namespace chrome |
OLD | NEW |