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

Side by Side Diff: components/storage_monitor/test_volume_mount_watcher_win.cc

Issue 2694813005: Revert of Remove header dependencies from sequence_checker.h to sequenced_worker_pool.h (Closed)
Patch Set: Created 3 years, 10 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 // TestVolumeMountWatcherWin implementation. 5 // TestVolumeMountWatcherWin implementation.
6 6
7 #include "components/storage_monitor/test_volume_mount_watcher_win.h" 7 #include "components/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 "base/threading/sequenced_worker_pool.h"
14 #include "components/storage_monitor/storage_info.h" 13 #include "components/storage_monitor/storage_info.h"
15 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
16 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
17 16
18 namespace storage_monitor { 17 namespace storage_monitor {
19 18
20 namespace { 19 namespace {
21 20
22 base::FilePath GetTempRoot() { 21 base::FilePath GetTempRoot() {
23 base::ScopedTempDir temp_dir; 22 base::ScopedTempDir temp_dir;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 } 148 }
150 149
151 VolumeMountWatcherWin::GetAttachedDevicesCallbackType 150 VolumeMountWatcherWin::GetAttachedDevicesCallbackType
152 TestVolumeMountWatcherWin::GetAttachedDevicesCallback() const { 151 TestVolumeMountWatcherWin::GetAttachedDevicesCallback() const {
153 if (attached_devices_fake_) 152 if (attached_devices_fake_)
154 return base::Bind(&FakeGetAttachedDevices); 153 return base::Bind(&FakeGetAttachedDevices);
155 return base::Bind(&FakeGetSingleAttachedDevice); 154 return base::Bind(&FakeGetSingleAttachedDevice);
156 } 155 }
157 156
158 } // namespace storage_monitor 157 } // namespace storage_monitor
OLDNEW
« no previous file with comments | « components/sessions/core/base_session_service.h ('k') | components/storage_monitor/volume_mount_watcher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698