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

Side by Side Diff: services/video_capture/test/video_capture_service_test.h

Issue 2660743002: Merge video_capture tests into service_unittests (Closed)
Patch Set: . Created 3 years, 10 months 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_VIDEO_CAPTURE_TEST_SERVICE_TEST_H_ 5 #ifndef SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_TEST_VIDEO_CAPTURE_SERVICE_TEST_H_
6 #define SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_TEST_SERVICE_TEST_H_ 6 #define SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_TEST_VIDEO_CAPTURE_SERVICE_TEST_H_
7 7
8 #include "base/test/mock_callback.h" 8 #include "base/test/mock_callback.h"
9 #include "services/service_manager/public/cpp/service_test.h" 9 #include "services/service_manager/public/cpp/service_test.h"
10 #include "services/video_capture/public/interfaces/service.mojom.h" 10 #include "services/video_capture/public/interfaces/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 ServiceTest : public service_manager::test::ServiceTest { 16 class VideoCaptureServiceTest : public service_manager::test::ServiceTest {
chfremer 2017/01/30 20:05:00 I understand that this is for being able to identi
17 public: 17 public:
18 ServiceTest(); 18 VideoCaptureServiceTest();
19 ~ServiceTest() override; 19 ~VideoCaptureServiceTest() override;
20 20
21 void SetUp() override; 21 void SetUp() override;
22 22
23 protected: 23 protected:
24 mojom::ServicePtr service_; 24 mojom::ServicePtr service_;
25 mojom::DeviceFactoryPtr factory_; 25 mojom::DeviceFactoryPtr factory_;
26 base::MockCallback<mojom::DeviceFactory::EnumerateDeviceDescriptorsCallback> 26 base::MockCallback<mojom::DeviceFactory::EnumerateDeviceDescriptorsCallback>
27 descriptor_receiver_; 27 descriptor_receiver_;
28 }; 28 };
29 29
30 } // namespace video_capture 30 } // namespace video_capture
31 31
32 #endif // SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_TEST_SERVICE_TEST_H_ 32 #endif // SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_TEST_VIDEO_CAPTURE_SERVICE_TEST_ H_
OLDNEW
« no previous file with comments | « services/video_capture/test/service_unittest.cc ('k') | services/video_capture/test/video_capture_service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698