blob: 7b1378f1c2467c2b417887d59d3501d06b86b649 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// 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::Device> i420_fake_device_remote_;
mojo::Remote<mojom::Device> mjpeg_fake_device_remote_;
};
} // namespace video_capture
#endif // SERVICES_VIDEO_CAPTURE_TEST_FAKE_DEVICE_TEST_H_