OLD | NEW |
1 // Copyright (c) 2011 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 CHROME_BROWSER_CHROMEOS_DBUS_MOCK_CROS_DISKS_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_MOCK_CROS_DISKS_CLIENT_H_ |
6 #define CHROME_BROWSER_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 "chrome/browser/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_METHOD4(Mount, void(const std::string&, MountType, MountCallback, | 21 MOCK_METHOD4(Mount, void(const std::string&, MountType, MountCallback, |
22 ErrorCallback)); | 22 ErrorCallback)); |
23 MOCK_METHOD3(Unmount, void(const std::string&, UnmountCallback, | 23 MOCK_METHOD3(Unmount, void(const std::string&, UnmountCallback, |
24 ErrorCallback)); | 24 ErrorCallback)); |
25 MOCK_METHOD2(EnumerateAutoMountableDevices, void( | 25 MOCK_METHOD2(EnumerateAutoMountableDevices, void( |
26 EnumerateAutoMountableDevicesCallback, ErrorCallback)); | 26 EnumerateAutoMountableDevicesCallback, ErrorCallback)); |
27 MOCK_METHOD4(FormatDevice, void(const std::string&, const std::string&, | 27 MOCK_METHOD4(FormatDevice, void(const std::string&, const std::string&, |
28 FormatDeviceCallback, ErrorCallback)); | 28 FormatDeviceCallback, ErrorCallback)); |
29 MOCK_METHOD3(GetDeviceProperties, void( | 29 MOCK_METHOD3(GetDeviceProperties, void( |
30 const std::string&, GetDevicePropertiesCallback, ErrorCallback)); | 30 const std::string&, GetDevicePropertiesCallback, ErrorCallback)); |
31 MOCK_METHOD2(SetUpConnections, void(MountEventHandler, | 31 MOCK_METHOD2(SetUpConnections, void(MountEventHandler, |
32 MountCompletedHandler)); | 32 MountCompletedHandler)); |
33 }; | 33 }; |
34 | 34 |
35 } // namespace chromeos | 35 } // namespace chromeos |
36 | 36 |
37 #endif // CHROME_BROWSER_CHROMEOS_DBUS_MOCK_CROS_DISKS_CLIENT_H_ | 37 #endif // CHROMEOS_DBUS_MOCK_CROS_DISKS_CLIENT_H_ |
OLD | NEW |