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

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

Issue 13524003: [StorageMonitor] Remove GetStorageSize. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Compiling... Created 7 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 (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/storage_monitor/test_storage_monitor.h" 5 #include "chrome/browser/storage_monitor/test_storage_monitor.h"
6 6
7 #include "chrome/browser/storage_monitor/media_storage_util.h" 7 #include "chrome/browser/storage_monitor/media_storage_util.h"
8 8
9 namespace chrome { 9 namespace chrome {
10 namespace test { 10 namespace test {
(...skipping 13 matching lines...) Expand all
24 const base::FilePath& path, 24 const base::FilePath& path,
25 StorageInfo* device_info) const { 25 StorageInfo* device_info) const {
26 if (!path.IsAbsolute()) 26 if (!path.IsAbsolute())
27 return false; 27 return false;
28 28
29 if (device_info) { 29 if (device_info) {
30 device_info->device_id = MediaStorageUtil::MakeDeviceId( 30 device_info->device_id = MediaStorageUtil::MakeDeviceId(
31 MediaStorageUtil::FIXED_MASS_STORAGE, path.AsUTF8Unsafe()); 31 MediaStorageUtil::FIXED_MASS_STORAGE, path.AsUTF8Unsafe());
32 device_info->name = path.BaseName().LossyDisplayName(); 32 device_info->name = path.BaseName().LossyDisplayName();
33 device_info->location = path.value(); 33 device_info->location = path.value();
34 device_info->total_size_in_bytes = 0;
34 } 35 }
35 return true; 36 return true;
36 } 37 }
37 38
38 uint64 TestStorageMonitor::GetStorageSize(
39 const base::FilePath::StringType& location) const {
40 return 0;
41 }
42
43 #if defined(OS_WIN) 39 #if defined(OS_WIN)
44 bool TestStorageMonitor::GetMTPStorageInfoFromDeviceId( 40 bool TestStorageMonitor::GetMTPStorageInfoFromDeviceId(
45 const std::string& storage_device_id, 41 const std::string& storage_device_id,
46 string16* device_location, 42 string16* device_location,
47 string16* storage_object_id) const { 43 string16* storage_object_id) const {
48 return false; 44 return false;
49 } 45 }
50 #endif 46 #endif
51 47
52 StorageMonitor::Receiver* TestStorageMonitor::receiver() const { 48 StorageMonitor::Receiver* TestStorageMonitor::receiver() const {
53 return StorageMonitor::receiver(); 49 return StorageMonitor::receiver();
54 } 50 }
55 51
56 void TestStorageMonitor::EjectDevice( 52 void TestStorageMonitor::EjectDevice(
57 const std::string& device_id, 53 const std::string& device_id,
58 base::Callback<void(EjectStatus)> callback) { 54 base::Callback<void(EjectStatus)> callback) {
59 ejected_device_ = device_id; 55 ejected_device_ = device_id;
60 callback.Run(EJECT_OK); 56 callback.Run(EJECT_OK);
61 } 57 }
62 58
63 } // namespace test 59 } // namespace test
64 } // namespace chrome 60 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/storage_monitor/test_storage_monitor.h ('k') | chrome/browser/storage_monitor/volume_mount_watcher_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698