#include "chrome/test/base/web_feature_histogram_tester.h"
#include <utility>
#include "base/threading/platform_thread.h"
#include "base/time/time.h"
#include "components/metrics/content/subprocess_metrics_provider.h"
#include "content/public/test/browser_test_utils.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace {
WebFeature;
_;
Each;
Ge;
Pair;
constexpr char kFeatureHistogramName[] = …;
void FetchCounts() { … }
std::vector<WebFeature> Keys(const std::map<WebFeature, int>& counts) { … }
bool AllCountsAreLessThanOrEqual(const std::map<WebFeature, int>& lhs,
const std::map<WebFeature, int>& rhs) { … }
}
std::map<WebFeature, int> AllZeroFeatureCounts(
const std::vector<WebFeature>& features) { … }
std::map<WebFeature, int> AddFeatureCounts(
const std::map<WebFeature, int>& lhs,
const std::map<WebFeature, int>& rhs) { … }
WebFeatureHistogramTester::WebFeatureHistogramTester() = default;
WebFeatureHistogramTester::~WebFeatureHistogramTester() = default;
int WebFeatureHistogramTester::GetCountInternal(WebFeature feature) const { … }
int WebFeatureHistogramTester::GetCount(WebFeature feature) const { … }
std::map<WebFeature, int> WebFeatureHistogramTester::GetCounts(
const std::vector<WebFeature>& features) const { … }
std::map<WebFeature, int> WebFeatureHistogramTester::GetNonZeroCounts(
const std::vector<WebFeature>& features) const { … }
std::map<WebFeature, int> WebFeatureHistogramTester::GetCountsInternal(
const std::vector<WebFeature>& features,
bool include_zeroes) const { … }
std::map<WebFeature, int> WebFeatureHistogramTester::WaitForCountsAtLeast(
const std::map<WebFeature, int>& expected) const { … }
void WebFeatureHistogramTester::ExpectCounts(
const std::map<WebFeature, int>& expected) const { … }