Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: services/video_capture/mock_device_test.h

Issue 2457003002: [Mojo Video Capture] Simplify API and some cleanups (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_MOCK_DEVICE_VIDEO_CAPTURE_SERVICE_TEST_H_ 5 #ifndef SERVICES_VIDEO_CAPTURE_MOCK_DEVICE_TEST_H_
6 #define SERVICES_VIDEO_CAPTURE_MOCK_DEVICE_VIDEO_CAPTURE_SERVICE_TEST_H_ 6 #define SERVICES_VIDEO_CAPTURE_MOCK_DEVICE_TEST_H_
7 7
8 #include "services/service_manager/public/cpp/service_test.h" 8 #include "services/service_manager/public/cpp/service_test.h"
9 #include "services/video_capture/mock_device_descriptor_receiver.h" 9 #include "services/video_capture/mock_device_descriptor_receiver.h"
10 #include "services/video_capture/mock_video_capture_device_impl.h" 10 #include "services/video_capture/mock_video_capture_device_impl.h"
11 #include "services/video_capture/mock_video_frame_receiver.h" 11 #include "services/video_capture/mock_video_frame_receiver.h"
12 #include "services/video_capture/public/cpp/video_capture_settings.h"
12 #include "services/video_capture/public/interfaces/video_capture_service.mojom.h " 13 #include "services/video_capture/public/interfaces/video_capture_service.mojom.h "
13 14
14 namespace video_capture { 15 namespace video_capture {
15 16
16 // Reusable test setup for testing with a single mock device. 17 // Reusable test setup for testing with a single mock device.
17 class MockDeviceVideoCaptureServiceTest 18 class MockDeviceTest : public service_manager::test::ServiceTest {
18 : public service_manager::test::ServiceTest {
19 public: 19 public:
20 MockDeviceVideoCaptureServiceTest(); 20 MockDeviceTest();
21 ~MockDeviceVideoCaptureServiceTest() override; 21 ~MockDeviceTest() override;
22 22
23 void SetUp() override; 23 void SetUp() override;
24 24
25 protected: 25 protected:
26 mojom::VideoCaptureServicePtr service_; 26 mojom::VideoCaptureServicePtr service_;
27 mojom::VideoCaptureDeviceFactoryPtr factory_; 27 mojom::VideoCaptureDeviceFactoryPtr factory_;
28 MockDeviceDescriptorReceiver descriptor_receiver_; 28 MockDeviceDescriptorReceiver descriptor_receiver_;
29 29
30 std::unique_ptr<MockVideoCaptureDeviceImpl> mock_device_; 30 std::unique_ptr<MockVideoCaptureDeviceImpl> mock_device_;
31 std::unique_ptr<MockVideoFrameReceiver> mock_receiver_; 31 std::unique_ptr<MockVideoFrameReceiver> mock_receiver_;
32 mojom::MockVideoCaptureDevicePtr mock_device_proxy_; 32 mojom::MockVideoCaptureDevicePtr mock_device_proxy_;
33 mojom::VideoCaptureDeviceProxyPtr device_proxy_; 33 mojom::VideoCaptureDeviceProxyPtr device_proxy_;
34 mojom::VideoFrameReceiverPtr mock_receiver_proxy_; 34 mojom::VideoFrameReceiverPtr mock_receiver_proxy_;
35 media::VideoCaptureFormat requested_format_; 35 VideoCaptureSettings requested_settings_;
36 }; 36 };
37 37
38 } // namespace video_capture 38 } // namespace video_capture
39 39
40 #endif // SERVICES_VIDEO_CAPTURE_MOCK_DEVICE_VIDEO_CAPTURE_SERVICE_TEST_H_ 40 #endif // SERVICES_VIDEO_CAPTURE_MOCK_DEVICE_TEST_H_
OLDNEW
« no previous file with comments | « services/video_capture/mock_device_descriptor_receiver.h ('k') | services/video_capture/mock_device_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698