#include "services/video_effects/test/fake_video_effects_service.h"
#include <memory>
#include "base/test/test_future.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "services/video_effects/public/mojom/video_effects_processor.mojom.h"
#include "services/video_effects/test/fake_video_effects_processor.h"
#include "services/viz/public/mojom/gpu.mojom.h"
namespace video_effects {
FakeVideoEffectsService::FakeVideoEffectsService(
mojo::PendingReceiver<mojom::VideoEffectsService> receiver)
: … { … }
FakeVideoEffectsService::~FakeVideoEffectsService() = default;
void FakeVideoEffectsService::CreateEffectsProcessor(
const std::string& device_id,
mojo::PendingRemote<viz::mojom::Gpu> gpu,
mojo::PendingRemote<media::mojom::VideoEffectsManager> manager,
mojo::PendingReceiver<mojom::VideoEffectsProcessor> processor) { … }
std::unique_ptr<base::test::TestFuture<void>>
FakeVideoEffectsService::GetEffectsProcessorCreationFuture() { … }
void FakeVideoEffectsService::SetBackgroundSegmentationModel(
base::File model_file) { … }
std::unique_ptr<base::test::TestFuture<base::File>>
FakeVideoEffectsService::GetBackgroundSegmentationModelFuture() { … }
base::flat_map<std::string, std::unique_ptr<FakeVideoEffectsProcessor>>&
FakeVideoEffectsService::GetProcessors() { … }
}