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

Side by Side Diff: chromeos/dbus/fake_cros_disks_client.cc

Issue 281063002: Add EnumerateMountEntries method in CrosDisksClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 "chromeos/dbus/fake_cros_disks_client.h" 5 #include "chromeos/dbus/fake_cros_disks_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 return true; 97 return true;
98 } 98 }
99 99
100 bool FakeCrosDisksClient::SendMountCompletedEvent( 100 bool FakeCrosDisksClient::SendMountCompletedEvent(
101 MountError error_code, 101 MountError error_code,
102 const std::string& source_path, 102 const std::string& source_path,
103 MountType mount_type, 103 MountType mount_type,
104 const std::string& mount_path) { 104 const std::string& mount_path) {
105 if (mount_completed_handler_.is_null()) 105 if (mount_completed_handler_.is_null())
106 return false; 106 return false;
107 mount_completed_handler_.Run(error_code, source_path, mount_type, mount_path); 107 mount_completed_handler_.Run(
108 MountEntry(error_code, source_path, mount_type, mount_path));
108 return true; 109 return true;
109 } 110 }
110 111
111 bool FakeCrosDisksClient::SendFormatCompletedEvent( 112 bool FakeCrosDisksClient::SendFormatCompletedEvent(
112 FormatError error_code, 113 FormatError error_code,
113 const std::string& device_path) { 114 const std::string& device_path) {
114 if (format_completed_handler_.is_null()) 115 if (format_completed_handler_.is_null())
115 return false; 116 return false;
116 format_completed_handler_.Run(error_code, device_path); 117 format_completed_handler_.Run(error_code, device_path);
117 return true; 118 return true;
118 } 119 }
119 120
120 } // namespace chromeos 121 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698