| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
| 7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "base/test/test_timeouts.h" | 11 #include "base/test/test_timeouts.h" |
| 12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
| 13 #include "media/base/video_capture_types.h" |
| 13 #include "media/video/capture/video_capture_device.h" | 14 #include "media/video/capture/video_capture_device.h" |
| 14 #include "media/video/capture/video_capture_device_factory.h" | 15 #include "media/video/capture/video_capture_device_factory.h" |
| 15 #include "media/video/capture/video_capture_types.h" | |
| 16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
| 20 #include "base/win/scoped_com_initializer.h" | 20 #include "base/win/scoped_com_initializer.h" |
| 21 #include "media/video/capture/win/video_capture_device_factory_win.h" | 21 #include "media/video/capture/win/video_capture_device_factory_win.h" |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 #if defined(OS_MACOSX) | 24 #if defined(OS_MACOSX) |
| 25 #include "media/video/capture/mac/video_capture_device_factory_mac.h" | 25 #include "media/video/capture/mac/video_capture_device_factory_mac.h" |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 // Use PIXEL_FORMAT_MAX to iterate all device names for testing | 419 // Use PIXEL_FORMAT_MAX to iterate all device names for testing |
| 420 // GetDeviceSupportedFormats(). | 420 // GetDeviceSupportedFormats(). |
| 421 scoped_ptr<VideoCaptureDevice::Name> name = | 421 scoped_ptr<VideoCaptureDevice::Name> name = |
| 422 GetFirstDeviceNameSupportingPixelFormat(PIXEL_FORMAT_MAX); | 422 GetFirstDeviceNameSupportingPixelFormat(PIXEL_FORMAT_MAX); |
| 423 // Verify no camera returned for PIXEL_FORMAT_MAX. Nothing else to test here | 423 // Verify no camera returned for PIXEL_FORMAT_MAX. Nothing else to test here |
| 424 // since we cannot forecast the hardware capabilities. | 424 // since we cannot forecast the hardware capabilities. |
| 425 ASSERT_FALSE(name); | 425 ASSERT_FALSE(name); |
| 426 } | 426 } |
| 427 | 427 |
| 428 }; // namespace media | 428 }; // namespace media |
| OLD | NEW |