From 0d6ef5aee5ae4a2e719c9d31db7c43eee79eb86c Mon Sep 17 00:00:00 2001 From: Chris Manton Date: Wed, 28 Apr 2021 12:14:48 -0700 Subject: [PATCH] Add test legacy trace stub Bug: 181199209 Test: gd/cert/run Tag: #refactor BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines Change-Id: Ie5be989255c5609da81b6126c266f18f45007e83 --- test/stub/legacy_trace.cc | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/stub/legacy_trace.cc diff --git a/test/stub/legacy_trace.cc b/test/stub/legacy_trace.cc new file mode 100644 index 000000000..2b4e3dcc5 --- /dev/null +++ b/test/stub/legacy_trace.cc @@ -0,0 +1,31 @@ +/* + * Copyright 2021 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +// tLEGACY_TRACE_LEVEL +uint8_t btu_trace_level = 6; +uint8_t appl_trace_level = 6; +uint8_t btif_trace_level = 6; + +uint8_t A2DP_SetTraceLevel(uint8_t new_level) { return 0; } +uint8_t AVDT_SetTraceLevel(uint8_t new_level) { return 0; } +uint8_t AVRC_SetTraceLevel(uint8_t new_level) { return 0; } +uint8_t BNEP_SetTraceLevel(uint8_t new_level) { return 0; } +uint8_t BTM_SetTraceLevel(uint8_t new_level) { return 0; } +uint8_t PAN_SetTraceLevel(uint8_t new_level) { return 0; } +uint8_t PORT_SetTraceLevel(uint8_t new_level) { return 0; } +uint8_t SMP_SetTraceLevel(uint8_t new_level) { return 0; } -- 2.11.0