#include "components/commerce/core/feature_utils.h"
#include <memory>
#include <vector>
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "components/commerce/core/commerce_feature_list.h"
#include "components/commerce/core/mock_account_checker.h"
#include "components/commerce/core/product_specifications/mock_product_specifications_service.h"
#include "components/commerce/core/product_specifications/product_specifications_set.h"
#include "components/commerce/core/test_utils.h"
#include "components/optimization_guide/core/feature_registry/feature_registration.h"
#include "components/prefs/testing_pref_service.h"
#include "components/sync/base/data_type.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace commerce {
namespace {
class FeatureUtilsTest : public testing::Test { … };
TEST_F(FeatureUtilsTest, CanLoadProductSpecificationsFullPageUi_HasFlag) { … }
TEST_F(FeatureUtilsTest, CanLoadProductSpecificationsFullPageUi_NoFlag) { … }
TEST_F(FeatureUtilsTest, CanManageProductSpecificationsSets_NullParams) { … }
TEST_F(FeatureUtilsTest, CanManageProductSpecificationsSets_HasSets_NoFlag) { … }
TEST_F(FeatureUtilsTest,
CanManageProductSpecificationsSets_HasSets_HasFlag_NoFetch) { … }
TEST_F(FeatureUtilsTest, CanManageProductSpecificationsSets_NoSets_HasFlag) { … }
TEST_F(FeatureUtilsTest, CanManageProductSpecificationsSets_NoSets_NoFlag) { … }
TEST_F(FeatureUtilsTest, CanFetchProductSpecificationsData_AllRequirements) { … }
TEST_F(FeatureUtilsTest, CanFetchProductSpecificationsData_NoMSBB) { … }
TEST_F(FeatureUtilsTest, CanFetchProductSpecificationsData_NoSync) { … }
TEST_F(FeatureUtilsTest, CanFetchProductSpecificationsData_NoEnterprise) { … }
TEST_F(FeatureUtilsTest,
CanFetchProductSpecificationsData_EnterpriseQualityLogging) { … }
TEST_F(FeatureUtilsTest,
IsProductSpecificationsAllowedForEnterprise_EnterpriseNotSet) { … }
TEST_F(FeatureUtilsTest,
IsProductSpecificationsAllowedForEnterprise_EnterpriseNotManaged) { … }
TEST_F(FeatureUtilsTest,
CanFetchProductSpecificationsData_BlockedByParentalControls) { … }
TEST_F(FeatureUtilsTest,
CanFetchProductSpecificationsData_ModelExecutionNotAllowed) { … }
}
}