Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00a4923b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "legacy: Use common mock functions test/net_test_bta" am: 0e02e981 am: 36d5804a

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1836466

Change-Id: Ib1c5dc40da06e79c20f29379cd1954056239fe59
parents e7bbbe77 36d5804a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -137,6 +137,8 @@ cc_test {
    defaults: ["fluoride_bta_defaults"],
    test_suites: ["device-tests"],
    srcs: [
        ":TestMockStackBtm",
        ":TestCommonMockFunctions",
        "test/bta_hf_client_test.cc",
        "test/bta_dm_cust_uuid_test.cc",
        "test/bta_dip_test.cc",
+0 −11
Original line number Diff line number Diff line
@@ -24,17 +24,6 @@

using bluetooth::Uuid;

// NOTE:
// Local re-implementation of functions to avoid testing of
// unrelated functions/features.
tBTM_STATUS BTM_ReadLocalDeviceName(char** p_name) { return BTM_SUCCESS; }
uint8_t BTM_GetEirSupportedServices(uint32_t* p_eir_uuid, uint8_t** p,
                                    uint8_t max_num_uuid16,
                                    uint8_t* p_num_uuid16) {
  return HCI_EIR_FLAGS_TYPE;
}
tBTM_STATUS BTM_WriteEIR(BT_HDR* p_buff) { return BTM_SUCCESS; }

class BtaCustUuid : public testing::Test {
 protected:
  void SetUp() override { bta_dm_cb = {}; }