#include "media/capture/video/mock_device_factory.h"
#include <utility>
#include "base/memory/raw_ptr.h"
namespace {
media::VideoCaptureFormat kSupportedFormat(gfx::Size(640, 480),
25.0f,
media::PIXEL_FORMAT_I420);
class RawPointerVideoCaptureDevice : public media::VideoCaptureDevice { … };
}
namespace media {
MockDeviceFactory::MockDeviceFactory() = default;
MockDeviceFactory::~MockDeviceFactory() = default;
void MockDeviceFactory::AddMockDevice(
media::VideoCaptureDevice* device,
const media::VideoCaptureDeviceDescriptor& descriptor) { … }
void MockDeviceFactory::RemoveAllDevices() { … }
VideoCaptureErrorOrDevice MockDeviceFactory::CreateDevice(
const media::VideoCaptureDeviceDescriptor& device_descriptor) { … }
void MockDeviceFactory::GetDevicesInfo(GetDevicesInfoCallback callback) { … }
}