diff options
Diffstat (limited to 'chromium/components/assist_ranker/base_predictor_unittest.cc')
-rw-r--r-- | chromium/components/assist_ranker/base_predictor_unittest.cc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/chromium/components/assist_ranker/base_predictor_unittest.cc b/chromium/components/assist_ranker/base_predictor_unittest.cc index 3ec770e99a4..aae82621b11 100644 --- a/chromium/components/assist_ranker/base_predictor_unittest.cc +++ b/chromium/components/assist_ranker/base_predictor_unittest.cc @@ -26,16 +26,19 @@ namespace { // Predictor config for testing. const char kTestModelName[] = "test_model"; -const char kTestLoggingName[] = "TestLoggingName"; +// This name needs to be an entry in ukm.xml +const char kTestLoggingName[] = "ContextualSearch"; const char kTestUmaPrefixName[] = "Test.Ranker"; const char kTestUrlParamName[] = "ranker-model-url"; const char kTestDefaultModelUrl[] = "https://foo.bar/model.bin"; -const char kBoolFeature[] = "bool_feature"; -const char kIntFeature[] = "int_feature"; -const char kFloatFeature[] = "float_feature"; -const char kStringFeature[] = "string_feature"; -const char kStringListFeature[] = "string_list_feature"; +// The whitelisted features must be metrics of kTestLoggingName in ukm.xml, +// though the types do not need to match. +const char kBoolFeature[] = "DidOptIn"; +const char kIntFeature[] = "DurationAfterScrollMs"; +const char kFloatFeature[] = "FontSize"; +const char kStringFeature[] = "IsEntity"; +const char kStringListFeature[] = "IsEntityEligible"; const char kFeatureNotWhitelisted[] = "not_whitelisted"; const char kTestNavigationUrl[] = "https://foo.com"; |