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

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

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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/mock_cryptohome_client.h ('k') | chromeos/dbus/modem_messaging_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PERMISSION_BROKER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_ 6 #define CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_
7 7
8 #include <stdint.h>
9
8 #include "chromeos/dbus/permission_broker_client.h" 10 #include "chromeos/dbus/permission_broker_client.h"
9 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
10 12
11 namespace dbus { 13 namespace dbus {
12 class FileDescriptor; 14 class FileDescriptor;
13 } // namespace dbus 15 } // namespace dbus
14 16
15 namespace chromeos { 17 namespace chromeos {
16 18
17 class MockPermissionBrokerClient : public PermissionBrokerClient { 19 class MockPermissionBrokerClient : public PermissionBrokerClient {
18 public: 20 public:
19 MockPermissionBrokerClient(); 21 MockPermissionBrokerClient();
20 ~MockPermissionBrokerClient() override; 22 ~MockPermissionBrokerClient() override;
21 23
22 MOCK_METHOD1(Init, void(dbus::Bus* bus)); 24 MOCK_METHOD1(Init, void(dbus::Bus* bus));
23 MOCK_METHOD2(CheckPathAccess, 25 MOCK_METHOD2(CheckPathAccess,
24 void(const std::string& path, const ResultCallback& callback)); 26 void(const std::string& path, const ResultCallback& callback));
25 MOCK_METHOD3(RequestPathAccess, 27 MOCK_METHOD3(RequestPathAccess,
26 void(const std::string& path, 28 void(const std::string& path,
27 int interface_id, 29 int interface_id,
28 const ResultCallback& callback)); 30 const ResultCallback& callback));
29 MOCK_METHOD2(OpenPath, 31 MOCK_METHOD2(OpenPath,
30 void(const std::string& path, const OpenPathCallback& callback)); 32 void(const std::string& path, const OpenPathCallback& callback));
31 MOCK_METHOD4(RequestTcpPortAccess, 33 MOCK_METHOD4(RequestTcpPortAccess,
32 void(uint16 port, 34 void(uint16_t port,
33 const std::string& interface, 35 const std::string& interface,
34 const dbus::FileDescriptor& lifeline_fd, 36 const dbus::FileDescriptor& lifeline_fd,
35 const ResultCallback& callback)); 37 const ResultCallback& callback));
36 MOCK_METHOD4(RequestUdpPortAccess, 38 MOCK_METHOD4(RequestUdpPortAccess,
37 void(uint16 port, 39 void(uint16_t port,
38 const std::string& interface, 40 const std::string& interface,
39 const dbus::FileDescriptor& lifeline_fd, 41 const dbus::FileDescriptor& lifeline_fd,
40 const ResultCallback& callback)); 42 const ResultCallback& callback));
41 MOCK_METHOD3(ReleaseTcpPort, 43 MOCK_METHOD3(ReleaseTcpPort,
42 void(uint16 port, 44 void(uint16_t port,
43 const std::string& interface, 45 const std::string& interface,
44 const ResultCallback& callback)); 46 const ResultCallback& callback));
45 MOCK_METHOD3(ReleaseUdpPort, 47 MOCK_METHOD3(ReleaseUdpPort,
46 void(uint16 port, 48 void(uint16_t port,
47 const std::string& interface, 49 const std::string& interface,
48 const ResultCallback& callback)); 50 const ResultCallback& callback));
49 }; 51 };
50 52
51 } // namespace chromeos 53 } // namespace chromeos
52 54
53 #endif // CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_ 55 #endif // CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_cryptohome_client.h ('k') | chromeos/dbus/modem_messaging_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698