1 /*
2  * Copyright 2019 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 #pragma once
17 
18 #include "l2cap/classic/fixed_channel.h"
19 #include "l2cap/classic/internal/fixed_channel_impl_mock.h"
20 #include "os/handler.h"
21 
22 #include <gmock/gmock.h>
23 
24 #include <utility>
25 
26 // Unit test interfaces
27 namespace bluetooth {
28 namespace l2cap {
29 namespace classic {
30 namespace testing {
31 
32 class MockFixedChannel : public FixedChannel {
33  public:
MockFixedChannel()34   MockFixedChannel() : FixedChannel(nullptr, nullptr){};
35   MOCK_METHOD(void, Acquire, ());
36   MOCK_METHOD(void, Release, ());
37   MOCK_METHOD(void, RegisterOnCloseCallback, (os::Handler * handler, OnCloseCallback on_close_callback));
38 };
39 
40 }  // namespace testing
41 }  // namespace classic
42 }  // namespace l2cap
43 }  // namespace bluetooth
44