| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_TEST_SERVICE_TEST_H_ | |
| 6 #define SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_TEST_SERVICE_TEST_H_ | |
| 7 | |
| 8 #include "base/test/mock_callback.h" | |
| 9 #include "services/service_manager/public/cpp/service_test.h" | |
| 10 #include "services/video_capture/public/interfaces/service.mojom.h" | |
| 11 #include "testing/gmock/include/gmock/gmock.h" | |
| 12 | |
| 13 namespace video_capture { | |
| 14 | |
| 15 // Basic test fixture that sets up a connection to the fake device factory. | |
| 16 class ServiceTest : public service_manager::test::ServiceTest { | |
| 17 public: | |
| 18 ServiceTest(); | |
| 19 ~ServiceTest() override; | |
| 20 | |
| 21 void SetUp() override; | |
| 22 | |
| 23 protected: | |
| 24 mojom::ServicePtr service_; | |
| 25 mojom::DeviceFactoryPtr factory_; | |
| 26 base::MockCallback<mojom::DeviceFactory::GetDeviceInfosCallback> | |
| 27 device_info_receiver_; | |
| 28 }; | |
| 29 | |
| 30 } // namespace video_capture | |
| 31 | |
| 32 #endif // SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_TEST_SERVICE_TEST_H_ | |
| OLD | NEW |