OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "media/capture/video/fake_video_capture_device.h" | 5 #include "media/capture/video/fake_video_capture_device.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
16 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
17 #include "base/test/test_timeouts.h" | 17 #include "base/test/test_timeouts.h" |
18 #include "base/threading/thread.h" | 18 #include "base/threading/thread.h" |
19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
20 #include "media/base/media_switches.h" | 20 #include "media/base/media_switches.h" |
21 #include "media/base/video_capture_types.h" | |
22 #include "media/capture/video/fake_video_capture_device_factory.h" | 21 #include "media/capture/video/fake_video_capture_device_factory.h" |
23 #include "media/capture/video/video_capture_device.h" | 22 #include "media/capture/video/video_capture_device.h" |
| 23 #include "media/capture/video_capture_types.h" |
24 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 | 26 |
27 using ::testing::_; | 27 using ::testing::_; |
28 using ::testing::Bool; | 28 using ::testing::Bool; |
29 using ::testing::Combine; | 29 using ::testing::Combine; |
30 using ::testing::SaveArg; | 30 using ::testing::SaveArg; |
31 using ::testing::Values; | 31 using ::testing::Values; |
32 | 32 |
33 namespace media { | 33 namespace media { |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 } | 451 } |
452 } | 452 } |
453 | 453 |
454 INSTANTIATE_TEST_CASE_P(, | 454 INSTANTIATE_TEST_CASE_P(, |
455 FakeVideoCaptureDeviceCommandLineTest, | 455 FakeVideoCaptureDeviceCommandLineTest, |
456 Values(CommandLineTestData{"fps=-1", 5}, | 456 Values(CommandLineTestData{"fps=-1", 5}, |
457 CommandLineTestData{"fps=29.97", 29.97f}, | 457 CommandLineTestData{"fps=29.97", 29.97f}, |
458 CommandLineTestData{"fps=60", 60}, | 458 CommandLineTestData{"fps=60", 60}, |
459 CommandLineTestData{"fps=1000", 60})); | 459 CommandLineTestData{"fps=1000", 60})); |
460 }; // namespace media | 460 }; // namespace media |
OLD | NEW |