| 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 <stddef.h> |
| 6 #include <stdint.h> |
| 7 |
| 5 #include "base/bind.h" | 8 #include "base/bind.h" |
| 6 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
| 7 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 10 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
| 11 #include "base/test/test_timeouts.h" | 14 #include "base/test/test_timeouts.h" |
| 12 #include "base/thread_task_runner_handle.h" | 15 #include "base/thread_task_runner_handle.h" |
| 13 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
| 17 #include "build/build_config.h" |
| 14 #include "media/base/video_capture_types.h" | 18 #include "media/base/video_capture_types.h" |
| 15 #include "media/capture/video/video_capture_device.h" | 19 #include "media/capture/video/video_capture_device.h" |
| 16 #include "media/capture/video/video_capture_device_factory.h" | 20 #include "media/capture/video/video_capture_device_factory.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 19 | 23 |
| 20 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
| 21 #include "base/win/scoped_com_initializer.h" | 25 #include "base/win/scoped_com_initializer.h" |
| 22 #include "base/win/windows_version.h" // For fine-grained suppression. | 26 #include "base/win/windows_version.h" // For fine-grained suppression. |
| 23 #include "media/capture/video/win/video_capture_device_factory_win.h" | 27 #include "media/capture/video/win/video_capture_device_factory_win.h" |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 // GetDeviceSupportedFormats(). | 476 // GetDeviceSupportedFormats(). |
| 473 scoped_ptr<VideoCaptureDevice::Name> name = | 477 scoped_ptr<VideoCaptureDevice::Name> name = |
| 474 GetFirstDeviceNameSupportingPixelFormat(PIXEL_FORMAT_MAX); | 478 GetFirstDeviceNameSupportingPixelFormat(PIXEL_FORMAT_MAX); |
| 475 // Verify no camera returned for PIXEL_FORMAT_MAX. Nothing else | 479 // Verify no camera returned for PIXEL_FORMAT_MAX. Nothing else |
| 476 // to test here | 480 // to test here |
| 477 // since we cannot forecast the hardware capabilities. | 481 // since we cannot forecast the hardware capabilities. |
| 478 ASSERT_FALSE(name); | 482 ASSERT_FALSE(name); |
| 479 } | 483 } |
| 480 | 484 |
| 481 }; // namespace media | 485 }; // namespace media |
| OLD | NEW |