| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/video_capture_device.h" | 5 #include "media/capture/video/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/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
| 17 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
| 18 #include "base/test/test_timeouts.h" | 18 #include "base/test/test_timeouts.h" |
| 19 #include "base/thread_task_runner_handle.h" | |
| 20 #include "base/threading/thread.h" | 19 #include "base/threading/thread.h" |
| 20 #include "base/threading/thread_task_runner_handle.h" |
| 21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
| 22 #include "media/base/video_capture_types.h" | 22 #include "media/base/video_capture_types.h" |
| 23 #include "media/capture/video/video_capture_device_factory.h" | 23 #include "media/capture/video/video_capture_device_factory.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 #if defined(OS_WIN) | 27 #if defined(OS_WIN) |
| 28 #include "base/win/scoped_com_initializer.h" | 28 #include "base/win/scoped_com_initializer.h" |
| 29 #include "base/win/windows_version.h" // For fine-grained suppression. | 29 #include "base/win/windows_version.h" // For fine-grained suppression. |
| 30 #include "media/capture/video/win/video_capture_device_factory_win.h" | 30 #include "media/capture/video/win/video_capture_device_factory_win.h" |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 // GetDeviceSupportedFormats(). | 486 // GetDeviceSupportedFormats(). |
| 487 std::unique_ptr<VideoCaptureDevice::Name> name = | 487 std::unique_ptr<VideoCaptureDevice::Name> name = |
| 488 GetFirstDeviceNameSupportingPixelFormat(PIXEL_FORMAT_MAX); | 488 GetFirstDeviceNameSupportingPixelFormat(PIXEL_FORMAT_MAX); |
| 489 // Verify no camera returned for PIXEL_FORMAT_MAX. Nothing else | 489 // Verify no camera returned for PIXEL_FORMAT_MAX. Nothing else |
| 490 // to test here | 490 // to test here |
| 491 // since we cannot forecast the hardware capabilities. | 491 // since we cannot forecast the hardware capabilities. |
| 492 ASSERT_FALSE(name); | 492 ASSERT_FALSE(name); |
| 493 } | 493 } |
| 494 | 494 |
| 495 }; // namespace media | 495 }; // namespace media |
| OLD | NEW |