#include "components/sync/service/trusted_vault_synthetic_field_trial.h"
#include <string>
#include "base/strings/stringprintf.h"
#include "base/test/metrics/histogram_tester.h"
#include "components/sync/protocol/nigori_specifics.pb.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace syncer {
namespace {
Eq;
FloatNear;
IsEmpty;
MATCHER(IsNotValid, "") { … }
MATCHER_P(IsValidWithName, expected_name, "") { … }
sync_pb::TrustedVaultAutoUpgradeExperimentGroup BuildTestProto(
int cohort,
sync_pb::TrustedVaultAutoUpgradeExperimentGroup::Type type,
int type_index) { … }
TEST(TrustedVaultSyntheticFieldTrialTest, ShouldBuildInvalidGroup) { … }
TEST(TrustedVaultSyntheticFieldTrialTest,
ShouldBuildInvalidGroupFromProtoDefaults) { … }
TEST(TrustedVaultSyntheticFieldTrialTest, ShouldGetValidGroupName) { … }
TEST(TrustedVaultSyntheticFieldTrialTest,
ShouldGetValidGroupNameWithTypeIndex) { … }
TEST(TrustedVaultSyntheticFieldTrialTest,
ShouldProduceDeterministicFloatBetweenZeroAndOneFromGaiaId) { … }
TEST(TrustedVaultSyntheticFieldTrialTest,
ShouldSampleGaiaIdsWithTenPercentProbability) { … }
TEST(TrustedVaultSyntheticFieldTrialTest,
ShouldLogValidationMetricsUponOnProfileLoad) { … }
TEST(TrustedVaultSyntheticFieldTrialTest,
ShouldNotLogValidationMetricsUponOnProfileLoadDueToSampling) { … }
}
}