OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROMEOS_DBUS_MOCK_MEDIA_TRANSFER_PROTOCOL_DAEMON_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_MOCK_MEDIA_TRANSFER_PROTOCOL_DAEMON_CLIENT_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "chromeos/dbus/media_transfer_protocol_daemon_client.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 |
| 13 namespace chromeos { |
| 14 |
| 15 class MockMediaTransferProtocolDaemonClient |
| 16 : public MediaTransferProtocolDaemonClient { |
| 17 public: |
| 18 MockMediaTransferProtocolDaemonClient(); |
| 19 virtual ~MockMediaTransferProtocolDaemonClient(); |
| 20 |
| 21 MOCK_METHOD2(EnumerateStorage, void(const EnumerateStorageCallback&, |
| 22 const ErrorCallback&)); |
| 23 MOCK_METHOD3(GetStorageInfo, void(const std::string&, |
| 24 const GetStorageInfoCallback&, |
| 25 const ErrorCallback&)); |
| 26 MOCK_METHOD4(OpenStorage, void(const std::string&, |
| 27 OpenStorageMode mode, |
| 28 const OpenStorageCallback&, |
| 29 const ErrorCallback&)); |
| 30 MOCK_METHOD3(CloseStorage, void(const std::string&, |
| 31 const CloseStorageCallback&, |
| 32 const ErrorCallback&)); |
| 33 MOCK_METHOD4(ReadDirectoryByPath, void(const std::string&, |
| 34 const std::string&, |
| 35 const ReadDirectoryCallback&, |
| 36 const ErrorCallback&)); |
| 37 MOCK_METHOD4(ReadDirectoryById, void(const std::string&, |
| 38 uint32, |
| 39 const ReadDirectoryCallback&, |
| 40 const ErrorCallback&)); |
| 41 MOCK_METHOD4(ReadFileByPath, void(const std::string&, |
| 42 const std::string&, |
| 43 const ReadFileCallback&, |
| 44 const ErrorCallback&)); |
| 45 MOCK_METHOD4(ReadFileById, void(const std::string&, |
| 46 uint32, |
| 47 const ReadFileCallback&, |
| 48 const ErrorCallback&)); |
| 49 MOCK_METHOD1(SetUpConnections, void(const MTPStorageEventHandler&)); |
| 50 }; |
| 51 |
| 52 } // namespace chromeos |
| 53 |
| 54 #endif // CHROMEOS_DBUS_MOCK_MEDIA_TRANSFER_PROTOCOL_DAEMON_CLIENT_H_ |
OLD | NEW |