Lines Matching refs:test_flag_

107     test_flag_.reset(new TestFlag(new ScratchFile(), FlagType::kDeviceConfig));  in SetUpRuntimeOptions()
112 test_flag_ = nullptr; in TearDown()
116 std::unique_ptr<TestFlag> test_flag_; member in art::FlagsTests
126 android::base::SetProperty(test_flag_->SystemProperty(), ""); in TearDown()
127 android::base::SetProperty(test_flag_->ServerSetting(), ""); in TearDown()
132 test_flag_.reset(new TestFlag(new ScratchFile(), flag_type_)); in SetUpRuntimeOptions()
133 std::string option = "-X" + test_flag_->CmdLineName() + ":1"; in SetUpRuntimeOptions()
157 test_flag_->AssertCmdlineValue(false, 1); in TEST_F()
158 test_flag_->AssertSysPropValue(false, 2); in TEST_F()
159 test_flag_->AssertServerSettingValue(false, 3); in TEST_F()
160 test_flag_->AssertDefaultValue(42); in TEST_F()
162 ASSERT_EQ(test_flag_->Value(), 42); in TEST_F()
171 if (!android::base::SetProperty(test_flag_->SystemProperty(), "2")) { in TEST_F()
173 << test_flag_->SystemProperty(); in TEST_F()
177 if (android::base::SetProperty(test_flag_->ServerSetting(), "3")) { in TEST_F()
179 << test_flag_->ServerSetting(); in TEST_F()
185 test_flag_->AssertCmdlineValue(true, 1); in TEST_F()
186 test_flag_->AssertSysPropValue(true, 2); in TEST_F()
187 test_flag_->AssertServerSettingValue(true, 3); in TEST_F()
188 test_flag_->AssertDefaultValue(42); in TEST_F()
190 ASSERT_EQ(test_flag_->Value(), 3); in TEST_F()
195 if (!android::base::SetProperty(test_flag_->SystemProperty(), "2")) { in TEST_F()
197 << test_flag_->SystemProperty(); in TEST_F()
203 test_flag_->AssertCmdlineValue(true, 1); in TEST_F()
204 test_flag_->AssertSysPropValue(true, 2); in TEST_F()
205 test_flag_->AssertServerSettingValue(false, 3); in TEST_F()
206 test_flag_->AssertDefaultValue(42); in TEST_F()
208 ASSERT_EQ(test_flag_->Value(), 2); in TEST_F()
215 test_flag_->AssertCmdlineValue(true, 1); in TEST_F()
216 test_flag_->AssertSysPropValue(false, 2); in TEST_F()
217 test_flag_->AssertServerSettingValue(false, 3); in TEST_F()
218 test_flag_->AssertDefaultValue(42); in TEST_F()
220 ASSERT_EQ(test_flag_->Value(), 1); in TEST_F()
225 if (!android::base::SetProperty(test_flag_->SystemProperty(), "2")) { in TEST_F()
227 << test_flag_->SystemProperty(); in TEST_F()
231 if (android::base::SetProperty(test_flag_->ServerSetting(), "3")) { in TEST_F()
233 << test_flag_->ServerSetting(); in TEST_F()
239 test_flag_->AssertCmdlineValue(true, 1); in TEST_F()
240 test_flag_->AssertSysPropValue(false, 2); in TEST_F()
241 test_flag_->AssertServerSettingValue(false, 3); in TEST_F()
242 test_flag_->AssertDefaultValue(42); in TEST_F()
244 ASSERT_EQ(test_flag_->Value(), 1); in TEST_F()