#include "components/segmentation_platform/internal/execution/mock_model_provider.h"
#include <utility>
#include "base/containers/contains.h"
#include "base/functional/callback.h"
#include "base/logging.h"
#include "components/segmentation_platform/public/model_provider.h"
namespace segmentation_platform {
namespace {
_;
Invoke;
Return;
void StoreClientCallback(
proto::SegmentId segment_id,
TestModelProviderFactory::Data* data,
const ModelProvider::ModelUpdatedCallback& model_updated_callback) { … }
}
MockModelProvider::MockModelProvider(
proto::SegmentId segment_id,
base::RepeatingCallback<void(const ModelProvider::ModelUpdatedCallback&)>
get_client_callback)
: … { … }
MockModelProvider::~MockModelProvider() = default;
MockDefaultModelProvider::MockDefaultModelProvider(
proto::SegmentId segment_id,
const proto::SegmentationModelMetadata& metadata)
: … { … }
MockDefaultModelProvider::~MockDefaultModelProvider() = default;
TestModelProviderFactory::Data::Data() = default;
TestModelProviderFactory::Data::~Data() = default;
std::unique_ptr<ModelProvider> TestModelProviderFactory::CreateProvider(
proto::SegmentId segment_id) { … }
std::unique_ptr<DefaultModelProvider>
TestModelProviderFactory::CreateDefaultProvider(proto::SegmentId segment_id) { … }
}