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

Commit 11ff15cc authored by Chris Manton's avatar Chris Manton
Browse files

net_test_bta: Use common thread library

Bug: 309783180
Test: atest net_test_bta

Change-Id: I4eea33f32b44180b837d777f844af37aefc13efb
parent ff656aee
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -222,6 +222,7 @@ cc_test {
    srcs: [
        ":LegacyStackSdp",
        ":TestCommonMockFunctions",
        ":TestCommonSyncMainHandler",
        ":TestFakeOsi",
        ":TestMockBtif",
        ":TestMockMainShim",
@@ -250,6 +251,7 @@ cc_test {
        "libbt-audio-hal-interface",
        "libbt-bta",
        "libbt-bta-core",
        "libbt-btu-main-thread",
        "libbt-common",
        "libbt-platform-protos-lite",
        "libbt_shim_bridge",
+0 −4
Original line number Diff line number Diff line
@@ -42,10 +42,6 @@

using namespace std::chrono_literals;

namespace base {
class MessageLoop;
}  // namespace base

namespace {
constexpr uint8_t kUnusedTimer = BTA_ID_MAX;
const RawAddress kRawAddress({0x11, 0x22, 0x33, 0x44, 0x55, 0x66});
+0 −8
Original line number Diff line number Diff line
@@ -21,17 +21,9 @@
#include <memory>

#include "bta/hf_client/bta_hf_client_int.h"
#include "bta/include/bta_hf_client_api.h"
#include "common/message_loop_thread.h"
#include "test/fake/fake_osi.h"
#include "types/raw_address.h"

namespace base {
class MessageLoop;
}  // namespace base

bluetooth::common::MessageLoopThread* get_main_thread() { return nullptr; }

namespace {
const RawAddress bdaddr1({0x11, 0x22, 0x33, 0x44, 0x55, 0x66});
const RawAddress bdaddr2({0x66, 0x55, 0x44, 0x33, 0x22, 0x11});