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

Commit ff6eca0c authored by Chris Manton's avatar Chris Manton
Browse files

legacy: add common init_flags test caps

Bug: 188077107
Tag: #refactor
Test: gd/cert/run

Change-Id: I0a36d1e490b317f58776c4169a904f6b1eb37097
parent aa4c5e1f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -228,3 +228,10 @@ filegroup {
      "common/main_handler.cc",
  ],
}

filegroup {
  name: "TestCommonInitFlags",
  srcs: [
      "common/init_flags.cc",
  ],
}
+23 −0
Original line number Diff line number Diff line


#include <map>
#include <string>

#include "gd/common/init_flags.h"

namespace bluetooth {
namespace common {

bool InitFlags::logging_debug_enabled_for_all = false;
std::unordered_map<std::string, bool>
    InitFlags::logging_debug_explicit_tag_settings = {};
void InitFlags::Load(const char** flags) {}
void InitFlags::SetAll(bool value) {
  InitFlags::logging_debug_enabled_for_all = value;
}
void InitFlags::SetAllForTesting() {
  InitFlags::logging_debug_enabled_for_all = true;
}

}  // namespace common
}  // namespace bluetooth