diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-24 12:15:48 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-08-28 13:30:04 +0000 |
commit | b014812705fc80bff0a5c120dfcef88f349816dc (patch) | |
tree | 25a2e2d9fa285f1add86aa333389a839f81a39ae /chromium/components/assist_ranker/base_predictor_unittest.cc | |
parent | 9f4560b1027ae06fdb497023cdcaf91b8511fa74 (diff) | |
download | qtwebengine-chromium-b014812705fc80bff0a5c120dfcef88f349816dc.tar.gz |
BASELINE: Update Chromium to 68.0.3440.125
Change-Id: I23f19369e01f688e496f5bf179abb521ad73874f
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
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"; |