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

Side by Side Diff: chrome/browser/storage_monitor/test_volume_mount_watcher_win.cc

Issue 23727009: Cleanup: Remove chrome namespace for storage monitor and media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
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/strings/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 {
16 namespace test {
17
18 namespace { 15 namespace {
19 16
20 base::FilePath GetTempRoot() { 17 base::FilePath GetTempRoot() {
21 base::ScopedTempDir temp_dir; 18 base::ScopedTempDir temp_dir;
22 temp_dir.CreateUniqueTempDir(); 19 temp_dir.CreateUniqueTempDir();
23 base::FilePath temp_root = temp_dir.path(); 20 base::FilePath temp_root = temp_dir.path();
24 while (temp_root.DirName() != temp_root) 21 while (temp_root.DirName() != temp_root)
25 temp_root = temp_root.DirName(); 22 temp_root = temp_root.DirName();
26 return temp_root; 23 return temp_root;
27 } 24 }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 VolumeMountWatcherWin::GetAttachedDevicesCallbackType 144 VolumeMountWatcherWin::GetAttachedDevicesCallbackType
148 TestVolumeMountWatcherWin::GetAttachedDevicesCallback() const { 145 TestVolumeMountWatcherWin::GetAttachedDevicesCallback() const {
149 if (attached_devices_fake_) 146 if (attached_devices_fake_)
150 return base::Bind(&FakeGetAttachedDevices); 147 return base::Bind(&FakeGetAttachedDevices);
151 return base::Bind(&FakeGetSingleAttachedDevice); 148 return base::Bind(&FakeGetSingleAttachedDevice);
152 } 149 }
153 150
154 void TestVolumeMountWatcherWin::ShutdownWorkerPool() { 151 void TestVolumeMountWatcherWin::ShutdownWorkerPool() {
155 device_info_worker_pool_->Shutdown(); 152 device_info_worker_pool_->Shutdown();
156 } 153 }
157
158 } // namespace test
159 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/storage_monitor/test_volume_mount_watcher_win.h ('k') | chrome/browser/storage_monitor/transient_device_ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698