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