#include "components/affiliations/core/browser/affiliation_utils.h"
#include "base/command_line.h"
#include "base/metrics/field_trial.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/url_constants.h"
namespace affiliations {
namespace {
const char kTestFacetURI1[] = …;
const char kTestFacetURI2[] = …;
const char kTestFacetURI3[] = …;
}
class AffiliationUtilsTest : public testing::Test { … };
TEST_F(AffiliationUtilsTest, FacetBrandingInfoOperatorEq) { … }
TEST_F(AffiliationUtilsTest, FacetOperatorEq) { … }
TEST_F(AffiliationUtilsTest, ValidWebFacetURIs) { … }
TEST_F(AffiliationUtilsTest, InvalidWebFacetURIs) { … }
TEST_F(AffiliationUtilsTest, ValidAndroidFacetURIs) { … }
TEST_F(AffiliationUtilsTest, InvalidAndroidFacetURIs) { … }
TEST_F(AffiliationUtilsTest, EqualEquivalenceClasses) { … }
TEST_F(AffiliationUtilsTest, NotEqualEquivalenceClasses) { … }
TEST_F(AffiliationUtilsTest, GetAndroidPackageDisplayName) { … }
struct MainDomainTestCase { … };
class AffiliationUtilsMainDomainTest
: public testing::Test,
public testing::WithParamInterface<MainDomainTestCase> { … };
TEST_P(AffiliationUtilsMainDomainTest, ParamTest) { … }
INSTANTIATE_TEST_SUITE_P(…);
struct MergeRelatedGroupsTestCase { … };
class AffiliationUtilsMergeRelatedGroupsTest
: public testing::Test,
public testing::WithParamInterface<MergeRelatedGroupsTestCase> { … };
TEST_P(AffiliationUtilsMergeRelatedGroupsTest, ParamTest) { … }
INSTANTIATE_TEST_SUITE_P(…);
}