// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/device_signals/core/common/signals_features.h" #include "base/test/scoped_feature_list.h" #include "testing/gtest/include/gtest/gtest.h" namespace enterprise_signals::features { class SignalsFeaturesTest : public testing::Test { … }; // Tests that IsNewFunctionEnabled will return false when the feature flag is // disabled. TEST_F(SignalsFeaturesTest, DisabledFeature) { … } // Tests that IsNewFunctionEnabled will return true when the feature flag is // enabled, and no specific function is disabled. TEST_F(SignalsFeaturesTest, EnabledFeature) { … } // Tests how IsNewFunctionEnabled behaves when the feature flag is enabled, but // the FileSystemInfo function is disabled. TEST_F(SignalsFeaturesTest, Enabled_DisableFileSystemInfo) { … } // Tests how IsNewFunctionEnabled behaves when the feature flag is enabled, but // the Settings function is disabled. TEST_F(SignalsFeaturesTest, Enabled_DisableSetting) { … } // Tests how IsNewFunctionEnabled behaves when the feature flag is enabled, but // the Antivirus function is disabled. TEST_F(SignalsFeaturesTest, Enabled_DisableAntiVirus) { … } // Tests how IsNewFunctionEnabled behaves when the feature flag is enabled, but // the Hotfix function is disabled. TEST_F(SignalsFeaturesTest, Enabled_DisableHotfix) { … } } // namespace enterprise_signals::features