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

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

Issue 2813343002: [Mojo Video Capture] Switch to using Mojo structs in media/capture/mojo (Closed)
Patch Set: Removed extraneous AtLeast Created 3 years, 8 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_TEST_FAKE_DEVICE_TEST_H_ 5 #ifndef SERVICES_VIDEO_CAPTURE_TEST_FAKE_DEVICE_TEST_H_
6 #define SERVICES_VIDEO_CAPTURE_TEST_FAKE_DEVICE_TEST_H_ 6 #define SERVICES_VIDEO_CAPTURE_TEST_FAKE_DEVICE_TEST_H_
7 7
8 #include "base/test/mock_callback.h" 8 #include "media/capture/video_capture_types.h"
9 #include "services/video_capture/public/cpp/capture_settings.h"
10 #include "services/video_capture/test/fake_device_descriptor_test.h" 9 #include "services/video_capture/test/fake_device_descriptor_test.h"
11 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
12 11
13 namespace video_capture { 12 namespace video_capture {
14 13
15 // Test fixture that creates a proxy to the fake device provided by the fake 14 // Test fixture that creates a proxy to the fake device provided by the fake
16 // device factory. 15 // device factory.
17 class FakeDeviceTest : public FakeDeviceDescriptorTest { 16 class FakeDeviceTest : public FakeDeviceDescriptorTest {
18 public: 17 public:
19 FakeDeviceTest(); 18 FakeDeviceTest();
20 ~FakeDeviceTest() override; 19 ~FakeDeviceTest() override;
21 20
22 void SetUp() override; 21 void SetUp() override;
23 22
24 protected: 23 protected:
25 base::MockCallback<mojom::DeviceFactory::GetSupportedFormatsCallback> 24 media::VideoCaptureFormat fake_device_first_supported_format_;
26 supported_formats_receiver_; 25 media::VideoCaptureParams requestable_settings_;
27 I420CaptureFormat fake_device_first_supported_format_;
28 CaptureSettings requestable_settings_;
29 mojom::DevicePtr fake_device_proxy_; 26 mojom::DevicePtr fake_device_proxy_;
30 }; 27 };
31 28
32 } // namespace video_capture 29 } // namespace video_capture
33 30
34 #endif // SERVICES_VIDEO_CAPTURE_TEST_FAKE_DEVICE_TEST_H_ 31 #endif // SERVICES_VIDEO_CAPTURE_TEST_FAKE_DEVICE_TEST_H_
OLDNEW
« no previous file with comments | « services/video_capture/test/fake_device_descriptor_unittest.cc ('k') | services/video_capture/test/fake_device_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698