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

Side by Side Diff: chromeos/dbus/mock_cros_disks_client.h

Issue 10231010: gdata: Apply correct mount label when mounting archives in GData (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 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
« no previous file with comments | « chromeos/dbus/cros_disks_client.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROMEOS_DBUS_MOCK_CROS_DISKS_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_MOCK_CROS_DISKS_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_CROS_DISKS_CLIENT_H_ 6 #define CHROMEOS_DBUS_MOCK_CROS_DISKS_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chromeos/dbus/cros_disks_client.h" 11 #include "chromeos/dbus/cros_disks_client.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 class MockCrosDisksClient : public CrosDisksClient { 16 class MockCrosDisksClient : public CrosDisksClient {
17 public: 17 public:
18 MockCrosDisksClient(); 18 MockCrosDisksClient();
19 virtual ~MockCrosDisksClient(); 19 virtual ~MockCrosDisksClient();
20 20
21 MOCK_METHOD5(Mount, void(const std::string&, 21 MOCK_METHOD6(Mount, void(const std::string&,
22 const std::string&,
22 const std::string&, 23 const std::string&,
23 MountType, 24 MountType,
24 const MountCallback&, 25 const MountCallback&,
25 const ErrorCallback&)); 26 const ErrorCallback&));
26 MOCK_METHOD3(Unmount, void(const std::string&, 27 MOCK_METHOD3(Unmount, void(const std::string&,
27 const UnmountCallback&, 28 const UnmountCallback&,
28 const ErrorCallback&)); 29 const ErrorCallback&));
29 MOCK_METHOD2(EnumerateAutoMountableDevices, 30 MOCK_METHOD2(EnumerateAutoMountableDevices,
30 void(const EnumerateAutoMountableDevicesCallback&, 31 void(const EnumerateAutoMountableDevicesCallback&,
31 const ErrorCallback&)); 32 const ErrorCallback&));
32 MOCK_METHOD4(FormatDevice, void(const std::string&, 33 MOCK_METHOD4(FormatDevice, void(const std::string&,
33 const std::string&, 34 const std::string&,
34 const FormatDeviceCallback&, 35 const FormatDeviceCallback&,
35 const ErrorCallback&)); 36 const ErrorCallback&));
36 MOCK_METHOD3(GetDeviceProperties, void(const std::string&, 37 MOCK_METHOD3(GetDeviceProperties, void(const std::string&,
37 const GetDevicePropertiesCallback&, 38 const GetDevicePropertiesCallback&,
38 const ErrorCallback&)); 39 const ErrorCallback&));
39 MOCK_METHOD2(SetUpConnections, void(const MountEventHandler&, 40 MOCK_METHOD2(SetUpConnections, void(const MountEventHandler&,
40 const MountCompletedHandler&)); 41 const MountCompletedHandler&));
41 }; 42 };
42 43
43 } // namespace chromeos 44 } // namespace chromeos
44 45
45 #endif // CHROMEOS_DBUS_MOCK_CROS_DISKS_CLIENT_H_ 46 #endif // CHROMEOS_DBUS_MOCK_CROS_DISKS_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/cros_disks_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698