#include "components/browsing_topics/epoch_topics.h"
#include "base/json/values_util.h"
#include "base/logging.h"
#include "components/browsing_topics/util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace browsing_topics {
namespace {
constexpr base::Time kCalculationTime = …;
constexpr browsing_topics::HmacKey kTestKey = …;
constexpr size_t kTaxonomySize = …;
constexpr int kConfigVersion = …;
constexpr int kTaxonomyVersion = …;
constexpr int64_t kModelVersion = …;
constexpr size_t kPaddedTopTopicsStartIndex = …;
std::vector<TopicAndDomains> CreateTestTopTopics() { … }
EpochTopics CreateTestEpochTopics() { … }
}
class EpochTopicsTest : public testing::Test { … };
TEST_F(EpochTopicsTest, CandidateTopicForSite_InvalidIndividualTopics) { … }
TEST_F(EpochTopicsTest, CandidateTopicForSite) { … }
TEST_F(EpochTopicsTest, ClearTopics) { … }
TEST_F(EpochTopicsTest, ClearTopic_NoDescendants) { … }
TEST_F(EpochTopicsTest, ClearTopic_WithDescendants) { … }
TEST_F(EpochTopicsTest, ClearContextDomain) { … }
TEST_F(EpochTopicsTest, FromEmptyDictionaryValue) { … }
TEST_F(EpochTopicsTest,
FromDictionaryValueWithoutConfigVersion_UseConfigVersion1) { … }
TEST_F(EpochTopicsTest, EmptyEpochTopics_ToAndFromDictValue) { … }
TEST_F(EpochTopicsTest, PopulatedEpochTopics_ToAndFromValue) { … }
TEST_F(EpochTopicsTest,
EmptyEpochTopicsWithCalculatorResultStatus_ToAndFromDictValue) { … }
}