1 /*
2  * Copyright 2024 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 #include "hci/acl_manager.h"
18 #include "main/shim/stack.h"
19 
20 namespace bluetooth {
21 namespace shim {
22 
23 namespace testing {
24 Acl* acl_{nullptr};
25 Stack* instance_{nullptr};
26 }  // namespace testing
27 
GetInstance()28 Stack* Stack::GetInstance() { return testing::instance_; }
29 
StartEverything()30 void Stack::StartEverything() {}
31 
StartModuleStack(const ModuleList *,const os::Thread *)32 void Stack::StartModuleStack(const ModuleList* /* modules */, const os::Thread* /* thread */) {}
33 
Start(ModuleList *)34 void Stack::Start(ModuleList* /* modules */) {}
35 
Stop()36 void Stack::Stop() {}
37 
IsRunning()38 bool Stack::IsRunning() { return stack_thread_ != nullptr; }
39 
GetStackManager()40 StackManager* Stack::GetStackManager() { return nullptr; }
41 
GetStackManager() const42 const StackManager* Stack::GetStackManager() const { return nullptr; }
43 
GetAcl()44 Acl* Stack::GetAcl() { return testing::acl_; }
45 
GetHandler()46 os::Handler* Stack::GetHandler() { return stack_handler_; }
47 
IsDumpsysModuleStarted() const48 bool Stack::IsDumpsysModuleStarted() const { return false; }
49 
LockForDumpsys(std::function<void ()>)50 bool Stack::LockForDumpsys(std::function<void()> /* dumpsys_callback */) { return false; }
51 
52 }  // namespace shim
53 }  // namespace bluetooth
54