#include "components/miracle_parameter/common/public/miracle_parameter.h"
#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/metrics/field_trial.h"
#include "base/metrics/field_trial_param_associator.h"
#include "base/test/mock_entropy_provider.h"
#include "base/test/scoped_amount_of_physical_memory_override.h"
#include "base/test/scoped_feature_list.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace miracle_parameter {
namespace {
scoped_refptr<base::FieldTrial> CreateFieldTrial(
const std::string& trial_name,
int total_probability,
const std::string& default_group_name) { … }
const std::string BoolToString(bool value) { … }
class ScopedNullCommandLineOverride { … };
}
class MiracleParameterTest : public ::testing::Test { … };
TEST_F(MiracleParameterTest, MiracleParameterForString) { … }
TEST_F(MiracleParameterTest, MiracleParameterForDouble) { … }
TEST_F(MiracleParameterTest, MiracleParameterForInt) { … }
TEST_F(MiracleParameterTest, MiracleParameterForBool) { … }
TEST_F(MiracleParameterTest, MiracleParameterForTimeDelta) { … }
TEST_F(MiracleParameterTest, MiracleParameterForEnum) { … }
}