OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SERVICES_VIDEO_CAPTURE_FAKE_DEVICE_TEST_H_ | 5 #ifndef SERVICES_VIDEO_CAPTURE_FAKE_DEVICE_TEST_H_ |
6 #define SERVICES_VIDEO_CAPTURE_FAKE_DEVICE_TEST_H_ | 6 #define SERVICES_VIDEO_CAPTURE_FAKE_DEVICE_TEST_H_ |
7 | 7 |
8 #include "services/video_capture/fake_device_descriptor_test.h" | 8 #include "services/video_capture/fake_device_descriptor_test.h" |
9 #include "services/video_capture/mock_supported_formats_receiver.h" | 9 #include "services/video_capture/mock_supported_formats_receiver.h" |
10 | 10 |
11 namespace video_capture { | 11 namespace video_capture { |
12 | 12 |
13 // Test fixture that creates a proxy to the fake device provided by the fake | 13 // Test fixture that creates a proxy to the fake device provided by the fake |
14 // device factory. | 14 // device factory. |
15 class FakeDeviceTest : public FakeDeviceDescriptorTest { | 15 class FakeDeviceTest : public FakeDeviceDescriptorTest { |
16 public: | 16 public: |
17 FakeDeviceTest(); | 17 FakeDeviceTest(); |
18 ~FakeDeviceTest() override; | 18 ~FakeDeviceTest() override; |
19 | 19 |
20 void SetUp() override; | 20 void SetUp() override; |
21 | 21 |
22 protected: | 22 protected: |
23 MockSupportedFormatsReceiver supported_formats_receiver_; | 23 MockSupportedFormatsReceiver supported_formats_receiver_; |
24 mojom::VideoCaptureFormatPtr fake_device_first_supported_format_; | 24 media::VideoCaptureFormat fake_device_first_supported_format_; |
25 mojom::VideoCaptureSettingsPtr requestable_settings_; | 25 media::VideoCaptureParams requestable_settings_; |
26 mojom::VideoCaptureDeviceProxyPtr fake_device_proxy_; | 26 mojom::VideoCaptureDeviceProxyPtr fake_device_proxy_; |
27 }; | 27 }; |
28 | 28 |
29 } // namespace video_capture | 29 } // namespace video_capture |
30 | 30 |
31 #endif // SERVICES_VIDEO_CAPTURE_FAKE_DEVICE_TEST_H_ | 31 #endif // SERVICES_VIDEO_CAPTURE_FAKE_DEVICE_TEST_H_ |
OLD | NEW |