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 legacy::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 */,
33                              const os::Thread* /* thread */) {}
34 
Start(ModuleList *)35 void Stack::Start(ModuleList* /* modules */) {}
36 
Stop()37 void Stack::Stop() {}
38 
IsRunning()39 bool Stack::IsRunning() { return stack_thread_ != nullptr; }
40 
GetStackManager()41 StackManager* Stack::GetStackManager() { return nullptr; }
42 
GetStackManager() const43 const StackManager* Stack::GetStackManager() const { return nullptr; }
44 
GetAcl()45 legacy::Acl* Stack::GetAcl() { return testing::acl_; }
46 
GetHandler()47 os::Handler* Stack::GetHandler() { return stack_handler_; }
48 
IsDumpsysModuleStarted() const49 bool Stack::IsDumpsysModuleStarted() const { return false; }
50 
LockForDumpsys(std::function<void ()>)51 bool Stack::LockForDumpsys(std::function<void()> /* dumpsys_callback */) {
52   return false;
53 }
54 
55 }  // namespace shim
56 }  // namespace bluetooth
57