#include "base/metrics/field_trial_params.h"
#include "base/feature_list.h"
#include "base/metrics/field_trial.h"
#include "base/metrics/field_trial_param_associator.h"
#include "base/test/gtest_util.h"
#include "base/test/mock_entropy_provider.h"
#include "base/test/scoped_feature_list.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace {
scoped_refptr<FieldTrial> CreateFieldTrial(
const std::string& trial_name,
int total_probability,
const std::string& default_group_name) { … }
}
class FieldTrialParamsTest : public ::testing::Test { … };
TEST_F(FieldTrialParamsTest, AssociateFieldTrialParams) { … }
TEST_F(FieldTrialParamsTest, AssociateFieldTrialParams_Fail) { … }
TEST_F(FieldTrialParamsTest, AssociateFieldTrialParams_TrialActiveFail) { … }
TEST_F(FieldTrialParamsTest, AssociateFieldTrialParams_DoesntActivateTrial) { … }
TEST_F(FieldTrialParamsTest, GetFieldTrialParams_NoTrial) { … }
TEST_F(FieldTrialParamsTest, GetFieldTrialParams_NoParams) { … }
TEST_F(FieldTrialParamsTest, GetFieldTrialParams_ActivatesTrial) { … }
TEST_F(FieldTrialParamsTest, GetFieldTrialParamValue_ActivatesTrial) { … }
TEST_F(FieldTrialParamsTest, GetFieldTrialParamsByFeature) { … }
TEST_F(FieldTrialParamsTest, GetFieldTrialParamValueByFeature) { … }
TEST_F(FieldTrialParamsTest, GetFieldTrialParamsByFeature_Disable) { … }
TEST_F(FieldTrialParamsTest, GetFieldTrialParamValueByFeature_Disable) { … }
TEST_F(FieldTrialParamsTest, FeatureParamString) { … }
TEST_F(FieldTrialParamsTest, FeatureParamString_Disable) { … }
TEST_F(FieldTrialParamsTest, FeatureParamInt) { … }
TEST_F(FieldTrialParamsTest, FeatureParamInt_Disable) { … }
TEST_F(FieldTrialParamsTest, FeatureParamDouble) { … }
TEST_F(FieldTrialParamsTest, FeatureParamDouble_Disable) { … }
TEST_F(FieldTrialParamsTest, FeatureParamBool) { … }
TEST_F(FieldTrialParamsTest, FeatureParamBool_Disable) { … }
TEST_F(FieldTrialParamsTest, FeatureParamTimeDelta) { … }
TEST_F(FieldTrialParamsTest, FeatureParamTimeDelta_Disable) { … }
enum Hand { … };
TEST_F(FieldTrialParamsTest, FeatureParamEnum) { … }
enum class UI { … };
TEST_F(FieldTrialParamsTest, FeatureParamEnumClass) { … }
}