Skip to content

Commit

Permalink
Fix search switch p3a test (uplift to 1.58.x) (#20225)
Browse files Browse the repository at this point in the history
Uplift of #19683 (squashed) to release
  • Loading branch information
brave-builds authored Sep 20, 2023
1 parent d97a9e2 commit 843dff2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions browser/search_engines/search_engine_tracker_browsertest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ IN_PROC_BROWSER_TEST_F(SearchEngineProviderP3ATest, DefaultSearchEngineP3A) {

IN_PROC_BROWSER_TEST_F(SearchEngineProviderP3ATest, SwitchSearchEngineP3A) {
// Check that the metric is reported on startup.
// For some reason we record kNoSwitch twice, even though
// For some reason we can record kNoSwitch twice, even though
// kDefaultSearchEngineMetric is only updated once at this point.
histogram_tester_->ExpectUniqueSample(kSwitchSearchEngineMetric,
SearchEngineSwitchP3A::kNoSwitch, 2);
auto start_count = histogram_tester_->GetBucketCount(
kSwitchSearchEngineMetric, SearchEngineSwitchP3A::kNoSwitch);
EXPECT_GT(start_count, 0);

// Load service for switching the default search engine.
auto* service =
Expand Down

0 comments on commit 843dff2

Please sign in to comment.