#include "components/safe_browsing/core/browser/user_population.h"
#include "base/feature_list.h"
#include "base/metrics/field_trial.h"
#include "base/strings/strcat.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "components/safe_browsing/buildflags.h"
#include "components/safe_browsing/core/common/features.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "components/unified_consent/pref_names.h"
#include "components/unified_consent/unified_consent_service.h"
#include "components/version_info/version_info.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace safe_browsing {
namespace {
BASE_FEATURE(…);
}
namespace {
std::unique_ptr<PrefService> CreatePrefService() { … }
}
TEST(GetUserPopulationTest, PopulatesPopulation) { … }
TEST(GetUserPopulationTest, PopulatesMBB) { … }
TEST(GetUserPopulationTest, PopulatesIncognito) { … }
TEST(GetUserPopulationTest, PopulatesSync) { … }
TEST(GetUserPopulationTest, PopulatesSignedIn) { … }
TEST(GetUserPopulationTest, PopulatesAdvancedProtection) { … }
TEST(GetUserPopulationTest, PopulatesUserAgent) { … }
TEST(GetUserPopulationTest, PopulatesProfileRelatedFields) { … }
TEST(GetExperimentStatusTest, HasEnabled) { … }
TEST(GetExperimentStatusTest, HasControl) { … }
TEST(GetExperimentStatusTest, OmitsDefault) { … }
}