Add a test for DevTools screenshot recording
[chromium-blink-merge.git] / chromeos / dbus / mock_permission_broker_client.h
blobd5c9c02ffe95de8064b94209bc8b5cc8ada29b05
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
3 // found in the LICENSE file.
5 #ifndef CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_
8 #include "chromeos/dbus/permission_broker_client.h"
9 #include "testing/gmock/include/gmock/gmock.h"
11 namespace dbus {
12 class FileDescriptor;
13 } // namespace dbus
15 namespace chromeos {
17 class MockPermissionBrokerClient : public PermissionBrokerClient {
18 public:
19 MockPermissionBrokerClient();
20 ~MockPermissionBrokerClient() override;
22 MOCK_METHOD1(Init, void(dbus::Bus* bus));
23 MOCK_METHOD2(CheckPathAccess,
24 void(const std::string& path, const ResultCallback& callback));
25 MOCK_METHOD3(RequestPathAccess,
26 void(const std::string& path,
27 int interface_id,
28 const ResultCallback& callback));
29 MOCK_METHOD2(OpenPath,
30 void(const std::string& path, const OpenPathCallback& callback));
31 MOCK_METHOD4(RequestTcpPortAccess,
32 void(uint16 port,
33 const std::string& interface,
34 const dbus::FileDescriptor& lifeline_fd,
35 const ResultCallback& callback));
36 MOCK_METHOD4(RequestUdpPortAccess,
37 void(uint16 port,
38 const std::string& interface,
39 const dbus::FileDescriptor& lifeline_fd,
40 const ResultCallback& callback));
41 MOCK_METHOD3(ReleaseTcpPort,
42 void(uint16 port,
43 const std::string& interface,
44 const ResultCallback& callback));
45 MOCK_METHOD3(ReleaseUdpPort,
46 void(uint16 port,
47 const std::string& interface,
48 const ResultCallback& callback));
51 } // namespace chromeos
53 #endif // CHROMEOS_DBUS_MOCK_PERMISSION_BROKER_CLIENT_H_