Home
last modified time | relevance | path

Searched refs:FlagHelper (Results 1 – 3 of 3) sorted by relevance

/external/libbrillo/brillo/
Dflag_helper_unittest.cc20 ~FlagHelperTest() override { brillo::FlagHelper::ResetForTesting(); } in ~FlagHelperTest()
46 brillo::FlagHelper::GetInstance()->set_command_line_for_testing( in TEST_F()
48 brillo::FlagHelper::Init(arraysize(argv), argv, "TestDefaultTrue"); in TEST_F()
108 brillo::FlagHelper::GetInstance()->set_command_line_for_testing( in TEST_F()
110 brillo::FlagHelper::Init(arraysize(argv), argv, "TestDefaultTrue"); in TEST_F()
168 brillo::FlagHelper::GetInstance()->set_command_line_for_testing( in TEST_F()
170 brillo::FlagHelper::Init(arraysize(argv), argv, "TestDefaultTrue"); in TEST_F()
197 brillo::FlagHelper::GetInstance()->set_command_line_for_testing( in TEST_F()
199 brillo::FlagHelper::Init(arraysize(argv), argv, "TestDuplicateSetvalue"); in TEST_F()
211 brillo::FlagHelper::GetInstance()->set_command_line_for_testing( in TEST_F()
[all …]
Dflag_helper.cc154 brillo::FlagHelper* instance_ = nullptr;
157 FlagHelper::FlagHelper() : command_line_(nullptr) { in FlagHelper() function in brillo::FlagHelper
161 FlagHelper::~FlagHelper() { in ~FlagHelper()
164 brillo::FlagHelper* FlagHelper::GetInstance() { in GetInstance()
166 instance_ = new FlagHelper(); in GetInstance()
171 void FlagHelper::ResetForTesting() { in ResetForTesting()
176 void FlagHelper::Init(int argc, in Init()
179 brillo::FlagHelper* helper = GetInstance(); in Init()
191 void FlagHelper::UpdateFlagValues() { in UpdateFlagValues()
242 void FlagHelper::AddFlag(std::unique_ptr<Flag> flag) { in AddFlag()
[all …]
Dflag_helper.h189 brillo::FlagHelper::GetInstance()->AddFlag(std::unique_ptr<brillo::Flag>( \
208 brillo::FlagHelper::GetInstance()->AddFlag( \
211 brillo::FlagHelper::GetInstance()->AddFlag( \
219 class BRILLO_EXPORT FlagHelper final {
222 static FlagHelper* GetInstance();
255 FlagHelper();
256 ~FlagHelper();
269 DISALLOW_COPY_AND_ASSIGN(FlagHelper);