#include "components/privacy_sandbox/privacy_sandbox_survey_service.h"
#include "base/test/task_environment.h"
#include "components/prefs/testing_pref_service.h"
#include "privacy_sandbox_prefs.h"
#include "privacy_sandbox_survey_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace privacy_sandbox {
namespace {
class PrivacySandboxSurveyServiceTest : public testing::Test { … };
class PrivacySandboxSurveyServiceCooldownTest
: public PrivacySandboxSurveyServiceTest { … };
TEST_F(PrivacySandboxSurveyServiceCooldownTest, SurveyShownByDefault) { … }
TEST_F(PrivacySandboxSurveyServiceCooldownTest,
SurveyNotShownWithActiveCooldown) { … }
TEST_F(PrivacySandboxSurveyServiceCooldownTest,
SurveyShownWhenCooldownExpires) { … }
class PrivacySandboxSurveyServiceOnSuccessfulSentimentSurveyTest
: public PrivacySandboxSurveyServiceTest { … };
TEST_F(PrivacySandboxSurveyServiceOnSuccessfulSentimentSurveyTest,
SetsPrefToCurrentTime) { … }
}
}