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

Commit 8e3bb184 authored by William Escande's avatar William Escande Committed by Łukasz Rymanowski
Browse files

Use proper dependency instead of self override

Bug: 354808620
Test: mmm packages/modules/Bluetooth
Flag: TEST_ONLY
Change-Id: If6100f6138d34d6a5e71c592e02710ea74ba7c50
parent 386a011c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -302,6 +302,7 @@ cc_test {
        "libfmq",
        "liblog",
        "libstatslog",
        "libcutils",
        "libutils",
        "server_configurable_flags",
    ],
@@ -318,6 +319,7 @@ cc_test {
        "libchrome",
        "libevent",
        "libgmock",
        "server_configurable_flags",
    ],
    cflags: [
        "-DBUILDCFG",
@@ -350,7 +352,9 @@ cc_test {
    static_libs: [
        "libbt-bta",
        "libbt-platform-protos-lite",
        "libcutils",
        "libgmock",
        "server_configurable_flags",
    ],
    header_libs: ["libbluetooth_headers"],
    cflags: [
+0 −8
Original line number Diff line number Diff line
@@ -28,14 +28,6 @@
#include "bta/le_audio/le_audio_types.h"
#include "btm_iso_api_types.h"

namespace server_configurable_flags {
std::string GetServerConfigurableFlag(const std::string& /* experiment_category_name */,
                                      const std::string& /* experiment_flag_name */,
                                      const std::string& /* default_value */) {
  return "";
}
}  // namespace server_configurable_flags

namespace bluetooth {
namespace {

+0 −8
Original line number Diff line number Diff line
@@ -486,14 +486,6 @@ namespace bluetooth::le_audio::broadcaster {
std::ostream& operator<<(std::ostream& os, const BroadcastConfiguration&) { return os; }
}  // namespace bluetooth::le_audio::broadcaster

namespace server_configurable_flags {
std::string GetServerConfigurableFlag(const std::string& /* experiment_category_name */,
                                      const std::string& /* experiment_flag_name */,
                                      const std::string& /* default_value */) {
  return "";
}
}  // namespace server_configurable_flags

namespace {

bluetooth::common::MessageLoopThread message_loop_thread("test message loop");
+6 −1
Original line number Diff line number Diff line
@@ -823,6 +823,7 @@ cc_test {
    shared_libs: [
        "libbase",
        "libcrypto",
        "libcutils",
        "libhidlbase",
        "liblog", // __android_log_print
    ],
@@ -841,6 +842,7 @@ cc_test {
        "libflatbuffers-cpp",
        "libgmock",
        "libosi",
        "server_configurable_flags",
    ],
    sanitize: {
        cfi: false,
@@ -1019,9 +1021,9 @@ cc_test {
        "libaconfig_storage_read_api_cc",
        "libbase",
        "libcrypto",
        "libcutils",
        "libhidlbase",
        "liblog",
        "server_configurable_flags",
    ],
    static_libs: [
        "libbluetooth-types",
@@ -1041,6 +1043,7 @@ cc_test {
        "libgtest",
        "liblc3",
        "libosi",
        "server_configurable_flags",
    ],
    data: [
        ":audio_set_configurations_bfbs",
@@ -1187,6 +1190,7 @@ cc_test {
        "libbase",
        "libbinder_ndk",
        "libcrypto",
        "libcutils",
        "libfmq",
        "libhidlbase",
        "liblog",
@@ -1210,6 +1214,7 @@ cc_test {
        "libgtest",
        "liblc3",
        "libosi",
        "server_configurable_flags",
    ],
    sanitize: {
        cfi: true,
+0 −8
Original line number Diff line number Diff line
@@ -84,14 +84,6 @@ static base::Callback<void(BT_OCTET8)> generator_cb;

void btsnd_hcic_ble_rand(base::Callback<void(BT_OCTET8)> cb) { generator_cb = cb; }

namespace server_configurable_flags {
std::string GetServerConfigurableFlag(const std::string& experiment_category_name,
                                      const std::string& experiment_flag_name,
                                      const std::string& default_value) {
  return "";
}
}  // namespace server_configurable_flags

std::atomic<int> num_async_tasks;
bluetooth::common::MessageLoopThread message_loop_thread("test message loop");
bluetooth::common::MessageLoopThread* get_main_thread() { return &message_loop_thread; }
Loading