#include "components/feed/core/v2/stream/privacy_notice_card_tracker.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "components/feed/core/common/pref_names.h"
#include "components/feed/core/proto/v2/wire/content_id.pb.h"
#include "components/feed/core/v2/ios_shared_prefs.h"
#include "components/feed/feed_feature_list.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/testing_pref_service.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace feed {
namespace {
feedwire::ContentId NoticeCardContentId() { … }
feedwire::ContentId OtherContentId() { … }
class PrivacyNoticeCardTrackerTest : public testing::Test { … };
TEST_F(PrivacyNoticeCardTrackerTest,
TrackingNoticeCardActionsDoesntUpdateCountsForNonNoticeCard) { … }
TEST_F(PrivacyNoticeCardTrackerTest, AcknowledgedNoticeCardWhenEnoughViews) { … }
TEST_F(PrivacyNoticeCardTrackerTest, ViewsAreIgnoredIfNotEnoughTimeElapsed) { … }
TEST_F(PrivacyNoticeCardTrackerTest,
DontAcknowledgedNoticeCardWhenNotEnoughViewsNorClicks) { … }
}
}