#include "components/language/core/browser/language_usage_metrics.h"
#include "base/metrics/histogram.h"
#include "base/metrics/histogram_samples.h"
#include "base/metrics/statistics_recorder.h"
#include "components/language/core/browser/url_language_histogram.h"
#include "components/prefs/testing_pref_service.h"
#include "testing/gtest/include/gtest/gtest.h"
HistogramBase;
HistogramSamples;
SampleCountIterator;
StatisticsRecorder;
UrlLanguageHistogram;
namespace language {
namespace {
class MetricsRecorder { … };
void RecordPageLanguageVisits(UrlLanguageHistogram& language_histogram,
std::string language,
int count) { … }
struct LanguageCodeHash { … };
}
TEST(LanguageUsageMetricsTest, RecordPageLanguageCounts) { … }
TEST(LanguageUsageMetricsTest, RecordAcceptLanguages) { … }
TEST(LanguageUsageMetricsTest, ParseAcceptLanguages) { … }
TEST(LanguageUsageMetricsTest, ToLanguageCodeHash) { … }
}