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_VIDEO_CAPTURE_SERVICE_TEST_H_ | 5 #ifndef SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_SERVICE_TEST_H_ |
6 #define SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_SERVICE_TEST_H_ | 6 #define SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_SERVICE_TEST_H_ |
7 | 7 |
8 #include "services/shell/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/public/interfaces/video_capture_service.mojom.h
" | 10 #include "services/video_capture/public/interfaces/video_capture_service.mojom.h
" |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 | 12 |
13 namespace video_capture { | 13 namespace video_capture { |
14 | 14 |
15 // Basic test fixture that sets up a connection to the fake device factory. | 15 // Basic test fixture that sets up a connection to the fake device factory. |
16 class VideoCaptureServiceTest : public shell::test::ServiceTest { | 16 class VideoCaptureServiceTest : public shell::test::ServiceTest { |
17 public: | 17 public: |
18 VideoCaptureServiceTest(); | 18 VideoCaptureServiceTest(); |
19 ~VideoCaptureServiceTest() override; | 19 ~VideoCaptureServiceTest() override; |
20 | 20 |
21 void SetUp() override; | 21 void SetUp() override; |
22 | 22 |
23 protected: | 23 protected: |
24 mojom::VideoCaptureServicePtr service_; | 24 mojom::VideoCaptureServicePtr service_; |
25 mojom::VideoCaptureDeviceFactoryPtr factory_; | 25 mojom::VideoCaptureDeviceFactoryPtr factory_; |
26 MockDeviceDescriptorReceiver descriptor_receiver_; | 26 MockDeviceDescriptorReceiver descriptor_receiver_; |
27 }; | 27 }; |
28 | 28 |
29 } // namespace video_capture | 29 } // namespace video_capture |
30 | 30 |
31 #endif // SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_SERVICE_TEST_H_ | 31 #endif // SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_SERVICE_TEST_H_ |
OLD | NEW |