#include "components/feature_engagement/internal/blocked_iph_features.h"
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/strings/string_util.h"
#include "base/synchronization/lock.h"
#include "components/feature_engagement/test/scoped_iph_feature_list.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace feature_engagement {
namespace {
BASE_FEATURE(…);
BASE_FEATURE(…);
BASE_FEATURE(…);
}
class BlockedIphFeaturesTest : public testing::Test { … };
TEST_F(BlockedIphFeaturesTest, IsFeatureBlockedDefaultValue) { … }
TEST_F(BlockedIphFeaturesTest, IsFeatureBlockedWithEmptyScope) { … }
TEST_F(BlockedIphFeaturesTest, IsFeatureBlockedInnerScopeHasException) { … }
TEST_F(BlockedIphFeaturesTest, IsFeatureBlockedOuterScopeHasException) { … }
TEST_F(BlockedIphFeaturesTest, IsFeatureBlockedMultipleExceptions) { … }
TEST_F(BlockedIphFeaturesTest, MaybeWriteToCommandLineWithNoBlocking) { … }
TEST_F(BlockedIphFeaturesTest, MaybeWriteToCommandLineBlockingAllIph) { … }
TEST_F(BlockedIphFeaturesTest, MaybeWriteToCommandLineBlockingAllButOneIph) { … }
TEST_F(BlockedIphFeaturesTest, MaybeWriteToCommandLineBlockingAllButTwoIph) { … }
TEST_F(BlockedIphFeaturesTest,
MaybeWriteToCommandLinePreviouslyHadEnabledFeatures) { … }
TEST_F(BlockedIphFeaturesTest, ReadFromCommandLineBlockAll) { … }
TEST_F(BlockedIphFeaturesTest, ReadFromCommandLineAllowOneIph) { … }
TEST_F(BlockedIphFeaturesTest, ReadFromCommandLineAllowTwoIph) { … }
}