1 /*
2 *
3 * Copyright 2022 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at:
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 */
18
19 #include <gtest/gtest.h>
20
21 #include "ble_hci_link_interface.h"
22 #include "bt_hdr.h"
23 #include "btm_ble_api_types.h"
24 #include "hci_error_code.h"
25 #include "osi/include/allocator.h"
26
27 namespace {
28
29 class StackBTMRegressionTests : public ::testing::Test {
30 protected:
SetUp()31 void SetUp() override {}
TearDown()32 void TearDown() override {}
33 };
34
35 // regression test for b/260078907
TEST_F(StackBTMRegressionTests,OOB_in_btm_ble_add_resolving_list_entry_complete)36 TEST_F(StackBTMRegressionTests,
37 OOB_in_btm_ble_add_resolving_list_entry_complete) {
38 BT_HDR event{};
39 btm_ble_add_resolving_list_entry_complete(event.data, 0);
40 }
41
42 // regression test for b/255304475
TEST_F(StackBTMRegressionTests,OOB_in_btm_ble_clear_resolving_list_complete)43 TEST_F(StackBTMRegressionTests,
44 OOB_in_btm_ble_clear_resolving_list_complete) {
45 BT_HDR event{};
46 btm_ble_clear_resolving_list_complete(event.data, 0);
47 }
48
49 } // namespace
50