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

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

Issue 1686823002: Remove chromeos::PermissionBrokerClient::RequestPathAccess(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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> 8 #include <stdint.h>
9 9
10 #include "chromeos/dbus/permission_broker_client.h" 10 #include "chromeos/dbus/permission_broker_client.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace dbus { 13 namespace dbus {
14 class FileDescriptor; 14 class FileDescriptor;
15 } // namespace dbus 15 } // namespace dbus
16 16
17 namespace chromeos { 17 namespace chromeos {
18 18
19 class MockPermissionBrokerClient : public PermissionBrokerClient { 19 class MockPermissionBrokerClient : public PermissionBrokerClient {
20 public: 20 public:
21 MockPermissionBrokerClient(); 21 MockPermissionBrokerClient();
22 ~MockPermissionBrokerClient() override; 22 ~MockPermissionBrokerClient() override;
23 23
24 MOCK_METHOD1(Init, void(dbus::Bus* bus)); 24 MOCK_METHOD1(Init, void(dbus::Bus* bus));
25 MOCK_METHOD2(CheckPathAccess, 25 MOCK_METHOD2(CheckPathAccess,
26 void(const std::string& path, const ResultCallback& callback)); 26 void(const std::string& path, const ResultCallback& callback));
27 MOCK_METHOD3(RequestPathAccess,
28 void(const std::string& path,
29 int interface_id,
30 const ResultCallback& callback));
31 MOCK_METHOD2(OpenPath, 27 MOCK_METHOD2(OpenPath,
32 void(const std::string& path, const OpenPathCallback& callback)); 28 void(const std::string& path, const OpenPathCallback& callback));
33 MOCK_METHOD4(RequestTcpPortAccess, 29 MOCK_METHOD4(RequestTcpPortAccess,
34 void(uint16_t port, 30 void(uint16_t port,
35 const std::string& interface, 31 const std::string& interface,
36 const dbus::FileDescriptor& lifeline_fd, 32 const dbus::FileDescriptor& lifeline_fd,
37 const ResultCallback& callback)); 33 const ResultCallback& callback));
38 MOCK_METHOD4(RequestUdpPortAccess, 34 MOCK_METHOD4(RequestUdpPortAccess,
39 void(uint16_t port, 35 void(uint16_t port,
40 const std::string& interface, 36 const std::string& interface,
41 const dbus::FileDescriptor& lifeline_fd, 37 const dbus::FileDescriptor& lifeline_fd,
42 const ResultCallback& callback)); 38 const ResultCallback& callback));
43 MOCK_METHOD3(ReleaseTcpPort, 39 MOCK_METHOD3(ReleaseTcpPort,
44 void(uint16_t port, 40 void(uint16_t port,
45 const std::string& interface, 41 const std::string& interface,
46 const ResultCallback& callback)); 42 const ResultCallback& callback));
47 MOCK_METHOD3(ReleaseUdpPort, 43 MOCK_METHOD3(ReleaseUdpPort,
48 void(uint16_t port, 44 void(uint16_t port,
49 const std::string& interface, 45 const std::string& interface,
50 const ResultCallback& callback)); 46 const ResultCallback& callback));
51 }; 47 };
52 48
53 } // namespace chromeos 49 } // namespace chromeos
54 50
55 #endif // CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_ 51 #endif // CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_permission_broker_client.cc ('k') | chromeos/dbus/permission_broker_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698