#include "components/variations/variations_params_manager.h"
#include <memory>
#include <utility>
#include "base/base_switches.h"
#include "base/feature_list.h"
#include "base/metrics/field_trial.h"
#include "base/metrics/field_trial_params.h"
#include "base/test/scoped_feature_list.h"
#include "components/variations/field_trial_config/field_trial_util.h"
#include "components/variations/variations_associated_data.h"
#include "components/variations/variations_switches.h"
namespace variations {
namespace testing {
namespace {
const char kGroupTesting[] = …;
base::FieldTrial* CreateFieldTrialWithParams(
const std::string& trial_name,
const std::string& trial_group_name,
const std::map<std::string, std::string>& param_values) { … }
}
VariationParamsManager::VariationParamsManager()
: … { … }
VariationParamsManager::VariationParamsManager(
const std::string& trial_name,
const std::map<std::string, std::string>& param_values)
: … { … }
VariationParamsManager::VariationParamsManager(
const std::string& trial_name,
const std::map<std::string, std::string>& param_values,
const std::set<std::string>& associated_features)
: … { … }
VariationParamsManager::~VariationParamsManager() { … }
void VariationParamsManager::SetVariationParams(
const std::string& trial_name,
const std::map<std::string, std::string>& param_values) { … }
void VariationParamsManager::SetVariationParams(
const std::string& trial_name,
const std::string& trial_group_name,
const std::map<std::string, std::string>& param_values) { … }
void VariationParamsManager::SetVariationParamsWithFeatureAssociations(
const std::string& trial_name,
const std::map<std::string, std::string>& param_values,
const std::set<std::string>& associated_features) { … }
void VariationParamsManager::ClearAllVariationIDs() { … }
void VariationParamsManager::ClearAllVariationParams() { … }
}
}