| 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 "device/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 "device/capture/video/fake_video_capture_device_factory.h" |
| 21 #include "device/capture/video/video_capture_device.h" |
| 20 #include "media/base/media_switches.h" | 22 #include "media/base/media_switches.h" |
| 21 #include "media/base/video_capture_types.h" | 23 #include "media/base/video_capture_types.h" |
| 22 #include "media/capture/video/fake_video_capture_device_factory.h" | |
| 23 #include "media/capture/video/video_capture_device.h" | |
| 24 #include "mojo/public/cpp/bindings/string.h" | 24 #include "mojo/public/cpp/bindings/string.h" |
| 25 #include "testing/gmock/include/gmock/gmock.h" | 25 #include "testing/gmock/include/gmock/gmock.h" |
| 26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
| 27 | 27 |
| 28 using ::testing::_; | 28 using ::testing::_; |
| 29 using ::testing::Bool; | 29 using ::testing::Bool; |
| 30 using ::testing::Combine; | 30 using ::testing::Combine; |
| 31 using ::testing::SaveArg; | 31 using ::testing::SaveArg; |
| 32 using ::testing::Values; | 32 using ::testing::Values; |
| 33 | 33 |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 } | 408 } |
| 409 } | 409 } |
| 410 | 410 |
| 411 INSTANTIATE_TEST_CASE_P(, | 411 INSTANTIATE_TEST_CASE_P(, |
| 412 FakeVideoCaptureDeviceCommandLineTest, | 412 FakeVideoCaptureDeviceCommandLineTest, |
| 413 Values(CommandLineTestData{"fps=-1", 5}, | 413 Values(CommandLineTestData{"fps=-1", 5}, |
| 414 CommandLineTestData{"fps=29.97", 29.97f}, | 414 CommandLineTestData{"fps=29.97", 29.97f}, |
| 415 CommandLineTestData{"fps=60", 60}, | 415 CommandLineTestData{"fps=60", 60}, |
| 416 CommandLineTestData{"fps=1000", 60})); | 416 CommandLineTestData{"fps=1000", 60})); |
| 417 }; // namespace media | 417 }; // namespace media |
| OLD | NEW |