#include "chrome/browser/data_sharing/data_sharing_service_factory.h"
#include <memory>
#include "base/test/scoped_feature_list.h"
#include "chrome/test/base/testing_profile.h"
#include "components/data_sharing/internal/data_sharing_service_impl.h"
#include "components/data_sharing/internal/empty_data_sharing_service.h"
#include "components/data_sharing/public/data_sharing_service.h"
#include "components/data_sharing/public/features.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace data_sharing {
namespace {
class DataSharingServiceFactoryTest : public testing::Test { … };
TEST_F(DataSharingServiceFactoryTest, FeatureEnabledUsesRealService) { … }
TEST_F(DataSharingServiceFactoryTest, FeatureDisabledUsesEmptyService) { … }
TEST_F(DataSharingServiceFactoryTest,
FeatureEnabledUsesEmptyServiceInIncognito) { … }
}
}