#include "extensions/common/feature_switch.h"
#include "base/command_line.h"
#include "testing/gtest/include/gtest/gtest.h"
FeatureSwitch;
namespace {
const char kSwitchName[] = …;
template <FeatureSwitch::DefaultValue T>
class FeatureSwitchTest : public testing::Test { … };
FeatureSwitchDisabledTest;
FeatureSwitchEnabledTest;
}
TEST_F(FeatureSwitchDisabledTest, NoSwitchValue) { … }
TEST_F(FeatureSwitchDisabledTest, FalseSwitchValue) { … }
TEST_F(FeatureSwitchDisabledTest, GibberishSwitchValue) { … }
TEST_F(FeatureSwitchDisabledTest, Override) { … }
TEST_F(FeatureSwitchDisabledTest, TrueSwitchValue) { … }
TEST_F(FeatureSwitchDisabledTest, TrimSwitchValue) { … }
TEST_F(FeatureSwitchEnabledTest, NoSwitchValue) { … }
TEST_F(FeatureSwitchEnabledTest, TrueSwitchValue) { … }
TEST_F(FeatureSwitchEnabledTest, GibberishSwitchValue) { … }
TEST_F(FeatureSwitchEnabledTest, Override) { … }
TEST_F(FeatureSwitchEnabledTest, FalseSwitchValue) { … }
TEST_F(FeatureSwitchEnabledTest, TrimSwitchValue) { … }