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

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

Issue 10825170: chromeos: Add dbus MTPDClient. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc ('k') | chromeos/dbus/mock_media_transfer_protocol_daemon_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698