#include "components/segmentation_platform/internal/segmentation_platform_service_test_base.h"
#include <string_view>
#include "base/test/test_simple_task_runner.h"
#include "base/time/time.h"
#include "base/values.h"
#include "components/prefs/scoped_user_pref_update.h"
#include "components/segmentation_platform/internal/constants.h"
#include "components/segmentation_platform/internal/database/segment_info_database.h"
#include "components/segmentation_platform/internal/execution/mock_model_provider.h"
#include "components/segmentation_platform/internal/segmentation_platform_service_impl.h"
#include "components/segmentation_platform/internal/ukm_data_manager.h"
#include "components/segmentation_platform/public/config.h"
#include "components/segmentation_platform/public/field_trial_register.h"
#include "components/sync_device_info/device_info_tracker.h"
#include "components/sync_device_info/fake_device_info_tracker.h"
namespace segmentation_platform {
namespace {
DeviceInfoTracker;
class MockFieldTrialRegister : public FieldTrialRegister { … };
std::vector<std::unique_ptr<Config>> CreateTestConfigs() { … }
}
constexpr char kTestSegmentationKey1[] = …;
constexpr char kTestSegmentationKey2[] = …;
constexpr char kTestSegmentationKey3[] = …;
constexpr char kTestSegmentationKey4[] = …;
constexpr char kTestProfileId[] = …;
SegmentationPlatformServiceTestBase::SegmentationPlatformServiceTestBase() { … }
SegmentationPlatformServiceTestBase::~SegmentationPlatformServiceTestBase() =
default;
void SegmentationPlatformServiceTestBase::InitPlatform(
UkmDataManager* ukm_data_manager,
history::HistoryService* history_service) { … }
void SegmentationPlatformServiceTestBase::DestroyPlatform() { … }
void SegmentationPlatformServiceTestBase::SetUpPrefs() { … }
std::vector<std::unique_ptr<Config>>
SegmentationPlatformServiceTestBase::CreateConfigs() { … }
}