#include "components/language/core/browser/url_language_histogram.h"
#include "components/prefs/testing_pref_service.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
ElementsAre;
FloatEq;
Gt;
SizeIs;
namespace {
const char kLang1[] = …;
const char kLang2[] = …;
const char kLang3[] = …;
}
namespace language {
bool operator==(const UrlLanguageHistogram::LanguageInfo& lhs,
const UrlLanguageHistogram::LanguageInfo& rhs) { … }
TEST(UrlLanguageHistogramTest, ListSorted) { … }
TEST(UrlLanguageHistogramTest, ListSortedReversed) { … }
TEST(UrlLanguageHistogramTest, RightFrequencies) { … }
TEST(UrlLanguageHistogramTest, RareLanguageDiscarded) { … }
TEST(UrlLanguageHistogramTest, ShouldClearHistoryIfAllTimes) { … }
TEST(UrlLanguageHistogramTest, ShouldNotClearHistoryIfNotAllTimes) { … }
}