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

Side by Side Diff: chrome/browser/system_monitor/test_removable_storage_notifications.cc

Issue 12286020: Replace FilePath with base::FilePath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | 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 #include "chrome/browser/system_monitor/test_removable_storage_notifications.h" 5 #include "chrome/browser/system_monitor/test_removable_storage_notifications.h"
6 6
7 namespace chrome { 7 namespace chrome {
8 namespace test { 8 namespace test {
9 9
10 TestRemovableStorageNotifications::TestRemovableStorageNotifications() 10 TestRemovableStorageNotifications::TestRemovableStorageNotifications()
11 : RemovableStorageNotifications() {} 11 : RemovableStorageNotifications() {}
12 12
13 TestRemovableStorageNotifications::~TestRemovableStorageNotifications() {} 13 TestRemovableStorageNotifications::~TestRemovableStorageNotifications() {}
14 14
15 TestRemovableStorageNotifications* 15 TestRemovableStorageNotifications*
16 TestRemovableStorageNotifications::CreateForBrowserTests() { 16 TestRemovableStorageNotifications::CreateForBrowserTests() {
17 RemovableStorageNotifications::RemoveSingletonForTesting(); 17 RemovableStorageNotifications::RemoveSingletonForTesting();
18 return new TestRemovableStorageNotifications(); 18 return new TestRemovableStorageNotifications();
19 } 19 }
20 20
21 bool TestRemovableStorageNotifications::GetDeviceInfoForPath( 21 bool TestRemovableStorageNotifications::GetDeviceInfoForPath(
22 const base::FilePath& path, 22 const base::FilePath& path,
23 StorageInfo* device_info) const { 23 StorageInfo* device_info) const {
24 return false; 24 return false;
25 } 25 }
26 26
27 uint64 TestRemovableStorageNotifications::GetStorageSize( 27 uint64 TestRemovableStorageNotifications::GetStorageSize(
28 const FilePath::StringType& location) const { 28 const base::FilePath::StringType& location) const {
29 return 0; 29 return 0;
30 } 30 }
31 31
32 #if defined(OS_WIN) 32 #if defined(OS_WIN)
33 bool TestRemovableStorageNotifications::GetMTPStorageInfoFromDeviceId( 33 bool TestRemovableStorageNotifications::GetMTPStorageInfoFromDeviceId(
34 const std::string& storage_device_id, 34 const std::string& storage_device_id,
35 string16* device_location, 35 string16* device_location,
36 string16* storage_object_id) const { 36 string16* storage_object_id) const {
37 return false; 37 return false;
38 } 38 }
39 #endif 39 #endif
40 40
41 void TestRemovableStorageNotifications::ProcessAttach( 41 void TestRemovableStorageNotifications::ProcessAttach(
42 const std::string& id, 42 const std::string& id,
43 const string16& name, 43 const string16& name,
44 const FilePath::StringType& location) { 44 const base::FilePath::StringType& location) {
45 receiver()->ProcessAttach(id, name, location); 45 receiver()->ProcessAttach(id, name, location);
46 } 46 }
47 47
48 void TestRemovableStorageNotifications::ProcessDetach(const std::string& id) { 48 void TestRemovableStorageNotifications::ProcessDetach(const std::string& id) {
49 receiver()->ProcessDetach(id); 49 receiver()->ProcessDetach(id);
50 } 50 }
51 51
52 RemovableStorageNotifications::Receiver* 52 RemovableStorageNotifications::Receiver*
53 TestRemovableStorageNotifications::receiver() const { 53 TestRemovableStorageNotifications::receiver() const {
54 return RemovableStorageNotifications::receiver(); 54 return RemovableStorageNotifications::receiver();
55 } 55 }
56 56
57 void TestRemovableStorageNotifications::EjectDevice( 57 void TestRemovableStorageNotifications::EjectDevice(
58 const std::string& device_id, 58 const std::string& device_id,
59 base::Callback<void(EjectStatus)> callback) { 59 base::Callback<void(EjectStatus)> callback) {
60 ejected_device_ = device_id; 60 ejected_device_ = device_id;
61 callback.Run(EJECT_OK); 61 callback.Run(EJECT_OK);
62 } 62 }
63 63
64 } // namespace test 64 } // namespace test
65 } // namespace chrome 65 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698