| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc
|
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc
|
| index 064d0aa45e243041fded14c64276ace5cd035799..96a824b2b4f81a5589b7d91143f64d5e75784a71 100644
|
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc
|
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc
|
| @@ -684,8 +684,10 @@ TEST_F(DataReductionProxyBypassStatsEndToEndTest,
|
| kErrorBody.c_str(), "HTTP/1.1 200 OK\r\n\r\n",
|
| kBody.c_str());
|
|
|
| - histogram_tester.ExpectUniqueSample(
|
| - "DataReductionProxy.ConfigService.HTTPRequests", 1, 1);
|
| + EXPECT_LT(
|
| + 0u, histogram_tester
|
| + .GetAllSamples("DataReductionProxy.ConfigService.HTTPRequests")
|
| + .size());
|
|
|
| // The first request caused the proxy to be marked as bad, so this second
|
| // request should not come through the proxy.
|
| @@ -701,10 +703,8 @@ TEST_F(DataReductionProxyBypassStatsEndToEndTest,
|
| ExpectOtherBypassedBytesHistogramsEmpty(histogram_tester,
|
| test_case.histogram_name);
|
|
|
| - // "DataReductionProxy.ConfigService.HTTPRequests" should not be recorded
|
| - // for bypassed requests.
|
| - histogram_tester.ExpectUniqueSample(
|
| - "DataReductionProxy.ConfigService.HTTPRequests", 1, 1);
|
| + histogram_tester.ExpectBucketCount(
|
| + "DataReductionProxy.ConfigService.HTTPRequests", 0, 0);
|
| }
|
| }
|
|
|
|
|