Lines Matching refs:kFeature
174 const Feature kFeature{"TestFeature", FEATURE_DISABLED_BY_DEFAULT}; in TEST_F() local
182 CreateFeatureWithTrial(kFeature, FeatureList::OVERRIDE_ENABLE_FEATURE, in TEST_F()
186 EXPECT_TRUE(GetFieldTrialParamsByFeature(kFeature, &actualParams)); in TEST_F()
192 const Feature kFeature{"TestFeature", FEATURE_DISABLED_BY_DEFAULT}; in TEST_F() local
200 CreateFeatureWithTrial(kFeature, FeatureList::OVERRIDE_ENABLE_FEATURE, in TEST_F()
204 EXPECT_EQ(params["x"], GetFieldTrialParamValueByFeature(kFeature, "x")); in TEST_F()
209 const Feature kFeature{"TestFeature", FEATURE_DISABLED_BY_DEFAULT}; in TEST_F() local
217 CreateFeatureWithTrial(kFeature, FeatureList::OVERRIDE_DISABLE_FEATURE, in TEST_F()
221 EXPECT_FALSE(GetFieldTrialParamsByFeature(kFeature, &actualParams)); in TEST_F()
226 const Feature kFeature{"TestFeature", FEATURE_DISABLED_BY_DEFAULT}; in TEST_F() local
234 CreateFeatureWithTrial(kFeature, FeatureList::OVERRIDE_DISABLE_FEATURE, in TEST_F()
238 EXPECT_EQ(std::string(), GetFieldTrialParamValueByFeature(kFeature, "x")); in TEST_F()
244 static const Feature kFeature{"TestFeature", FEATURE_DISABLED_BY_DEFAULT}; in TEST_F() local
245 static const FeatureParam<std::string> a{&kFeature, "a", "default"}; in TEST_F()
246 static const FeatureParam<std::string> b{&kFeature, "b", ""}; in TEST_F()
247 static const FeatureParam<std::string> c{&kFeature, "c", "default"}; in TEST_F()
248 static const FeatureParam<std::string> d{&kFeature, "d", ""}; in TEST_F()
249 static const FeatureParam<std::string> e{&kFeature, "e", "default"}; in TEST_F()
250 static const FeatureParam<std::string> f{&kFeature, "f", ""}; in TEST_F()
263 CreateFeatureWithTrial(kFeature, FeatureList::OVERRIDE_ENABLE_FEATURE, in TEST_F()
277 static const Feature kFeature{"TestFeature", FEATURE_DISABLED_BY_DEFAULT}; in TEST_F() local
278 static const FeatureParam<int> a{&kFeature, "a", 0}; in TEST_F()
279 static const FeatureParam<int> b{&kFeature, "b", 0}; in TEST_F()
280 static const FeatureParam<int> c{&kFeature, "c", 0}; in TEST_F()
281 static const FeatureParam<int> d{&kFeature, "d", 0}; in TEST_F()
282 static const FeatureParam<int> e{&kFeature, "e", 0}; in TEST_F()
294 CreateFeatureWithTrial(kFeature, FeatureList::OVERRIDE_ENABLE_FEATURE, in TEST_F()
297 EXPECT_EQ(1, GetFieldTrialParamByFeatureAsInt(kFeature, "a", 0)); in TEST_F()
298 EXPECT_EQ(0, GetFieldTrialParamByFeatureAsInt(kFeature, "b", 0)); // invalid in TEST_F()
299 EXPECT_EQ(0, GetFieldTrialParamByFeatureAsInt(kFeature, "c", 0)); // invalid in TEST_F()
300 EXPECT_EQ(0, GetFieldTrialParamByFeatureAsInt(kFeature, "d", 0)); // empty in TEST_F()
301 EXPECT_EQ(0, GetFieldTrialParamByFeatureAsInt(kFeature, "e", 0)); // empty in TEST_F()
313 static const Feature kFeature{"TestFeature", FEATURE_DISABLED_BY_DEFAULT}; in TEST_F() local
314 static const FeatureParam<double> a{&kFeature, "a", 0.0}; in TEST_F()
315 static const FeatureParam<double> b{&kFeature, "b", 0.0}; in TEST_F()
316 static const FeatureParam<double> c{&kFeature, "c", 0.0}; in TEST_F()
317 static const FeatureParam<double> d{&kFeature, "d", 0.0}; in TEST_F()
318 static const FeatureParam<double> e{&kFeature, "e", 0.0}; in TEST_F()
319 static const FeatureParam<double> f{&kFeature, "f", 0.0}; in TEST_F()
332 CreateFeatureWithTrial(kFeature, FeatureList::OVERRIDE_ENABLE_FEATURE, in TEST_F()
335 EXPECT_EQ(1, GetFieldTrialParamByFeatureAsDouble(kFeature, "a", 0)); in TEST_F()
336 EXPECT_EQ(1.5, GetFieldTrialParamByFeatureAsDouble(kFeature, "b", 0)); in TEST_F()
337 EXPECT_EQ(1.0e-10, GetFieldTrialParamByFeatureAsDouble(kFeature, "c", 0)); in TEST_F()
339 GetFieldTrialParamByFeatureAsDouble(kFeature, "d", 0)); // invalid in TEST_F()
340 EXPECT_EQ(0, GetFieldTrialParamByFeatureAsDouble(kFeature, "e", 0)); // empty in TEST_F()
341 EXPECT_EQ(0, GetFieldTrialParamByFeatureAsDouble(kFeature, "f", 0)); // empty in TEST_F()
354 static const Feature kFeature{"TestFeature", FEATURE_DISABLED_BY_DEFAULT}; in TEST_F() local
355 static const FeatureParam<bool> a{&kFeature, "a", false}; in TEST_F()
356 static const FeatureParam<bool> b{&kFeature, "b", true}; in TEST_F()
357 static const FeatureParam<bool> c{&kFeature, "c", false}; in TEST_F()
358 static const FeatureParam<bool> d{&kFeature, "d", true}; in TEST_F()
359 static const FeatureParam<bool> e{&kFeature, "e", true}; in TEST_F()
360 static const FeatureParam<bool> f{&kFeature, "f", true}; in TEST_F()
373 CreateFeatureWithTrial(kFeature, FeatureList::OVERRIDE_ENABLE_FEATURE, in TEST_F()
391 static const Feature kFeature{"TestFeature", FEATURE_DISABLED_BY_DEFAULT}; in TEST_F() local
392 static const FeatureParam<Hand> a{&kFeature, "a", ROCK, &hands}; in TEST_F()
393 static const FeatureParam<Hand> b{&kFeature, "b", ROCK, &hands}; in TEST_F()
394 static const FeatureParam<Hand> c{&kFeature, "c", ROCK, &hands}; in TEST_F()
395 static const FeatureParam<Hand> d{&kFeature, "d", ROCK, &hands}; in TEST_F()
396 static const FeatureParam<Hand> e{&kFeature, "e", PAPER, &hands}; in TEST_F()
397 static const FeatureParam<Hand> f{&kFeature, "f", SCISSORS, &hands}; in TEST_F()
410 CreateFeatureWithTrial(kFeature, FeatureList::OVERRIDE_ENABLE_FEATURE, in TEST_F()
428 static const Feature kFeature{"TestFeature", FEATURE_DISABLED_BY_DEFAULT}; in TEST_F() local
429 static const FeatureParam<UI> a{&kFeature, "a", UI::ONE_D, &uis}; in TEST_F()
430 static const FeatureParam<UI> b{&kFeature, "b", UI::ONE_D, &uis}; in TEST_F()
431 static const FeatureParam<UI> c{&kFeature, "c", UI::ONE_D, &uis}; in TEST_F()
432 static const FeatureParam<UI> d{&kFeature, "d", UI::ONE_D, &uis}; in TEST_F()
433 static const FeatureParam<UI> e{&kFeature, "e", UI::TWO_D, &uis}; in TEST_F()
434 static const FeatureParam<UI> f{&kFeature, "f", UI::THREE_D, &uis}; in TEST_F()
447 CreateFeatureWithTrial(kFeature, FeatureList::OVERRIDE_ENABLE_FEATURE, in TEST_F()