#include "components/feed/core/v2/view_demotion.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "components/feed/core/proto/v2/store.pb.h"
#include "components/feed/core/v2/config.h"
#include "components/feed/core/v2/feedstore_util.h"
#include "components/feed/core/v2/test/proto_printer.h"
#include "components/feed/core/v2/test/test_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace feed {
namespace {
CreateDocView;
UnorderedElementsAre;
class ViewDemotionTest : public testing::Test { … };
TEST_F(ViewDemotionTest, OnlyNewAreCounted) { … }
TEST_F(ViewDemotionTest, MultipleViewsOfOneDocument) { … }
TEST_F(ViewDemotionTest, TotalViewsOfFewDocsCanExceedLimit) { … }
TEST_F(ViewDemotionTest, TotalDocumentsExceedsLimit) { … }
}
}