blob: 27bc2444e9f794ed70c2d7118b8fdaa4d62de0ae [file] [log] [blame]
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_VIDEO_CAPTURE_TEST_FAKE_DEVICE_TEST_H_
#define SERVICES_VIDEO_CAPTURE_TEST_FAKE_DEVICE_TEST_H_
#include "media/capture/video_capture_types.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/video_capture/public/mojom/device.mojom.h"
#include "services/video_capture/test/fake_device_descriptor_test.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace video_capture {
// Test fixture that creates a remote to the fake device provided by the fake
// device factory.
class FakeDeviceTest : public FakeDeviceDescriptorTest {
public:
FakeDeviceTest();
~FakeDeviceTest() override;
void SetUp() override;
protected:
media::VideoCaptureFormat fake_device_first_supported_format_;
media::VideoCaptureParams requestable_settings_;
mojo::Remote<mojom::VideoSource> i420_fake_source_remote_;
mojo::Remote<mojom::VideoSource> mjpeg_fake_source_remote_;
};
} // namespace video_capture
#endif // SERVICES_VIDEO_CAPTURE_TEST_FAKE_DEVICE_TEST_H_