1 /*
2  * Copyright 2023 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 #include <gmock/gmock.h>
20 
21 #include "stack/include/hcimsgs.h"
22 
23 namespace bluetooth::legacy::hci::testing {
24 class MockInterface : public Interface {
25  public:
26   MOCK_METHOD(void, Disconnect, (uint16_t handle, uint8_t reason), (const));
27   MOCK_METHOD(void, ChangeConnectionPacketType,
28               (uint16_t handle, uint16_t packet_types), (const));
29   MOCK_METHOD(void, StartRoleSwitch, (const RawAddress& bd_addr, uint8_t role),
30               (const));
31   MOCK_METHOD(void, ConfigureDataPath,
32               (hci_data_direction_t data_path_direction, uint8_t data_path_id,
33                std::vector<uint8_t> vendor_config),
34               (const));
35 };
36 void SetMock(const MockInterface& interface);
37 }  // namespace bluetooth::legacy::hci::testing
38