OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // Unit test for VideoCaptureBufferPool. | 5 // Unit test for VideoCaptureBufferPool. |
6 | 6 |
7 #include "media/capture/video/video_capture_buffer_pool.h" | 7 #include "media/capture/video/video_capture_buffer_pool.h" |
8 | 8 |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 #include <stdint.h> | 10 #include <stdint.h> |
11 #include <string.h> | 11 #include <string.h> |
12 | 12 |
13 #include <memory> | 13 #include <memory> |
14 #include <utility> | 14 #include <utility> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/bind.h" | 17 #include "base/bind.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/memory/ptr_util.h" | 19 #include "base/memory/ptr_util.h" |
20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
21 #include "base/message_loop/message_loop.h" | 21 #include "base/message_loop/message_loop.h" |
22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
23 #include "cc/test/test_context_provider.h" | 23 #include "cc/test/test_context_provider.h" |
24 #include "cc/test/test_web_graphics_context_3d.h" | 24 #include "cc/test/test_web_graphics_context_3d.h" |
25 #include "components/display_compositor/buffer_queue.h" | 25 #include "components/viz/display_compositor/buffer_queue.h" |
26 #include "content/browser/renderer_host/media/video_capture_controller.h" | 26 #include "content/browser/renderer_host/media/video_capture_controller.h" |
27 #include "media/base/video_frame.h" | 27 #include "media/base/video_frame.h" |
28 #include "media/capture/video/video_capture_buffer_pool_impl.h" | 28 #include "media/capture/video/video_capture_buffer_pool_impl.h" |
29 #include "media/capture/video/video_capture_buffer_tracker_factory_impl.h" | 29 #include "media/capture/video/video_capture_buffer_tracker_factory_impl.h" |
30 #include "testing/gmock/include/gmock/gmock.h" | 30 #include "testing/gmock/include/gmock/gmock.h" |
31 #include "testing/gtest/include/gtest/gtest.h" | 31 #include "testing/gtest/include/gtest/gtest.h" |
32 | 32 |
33 namespace content { | 33 namespace content { |
34 | 34 |
35 struct PixelFormatAndStorage { | 35 struct PixelFormatAndStorage { |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 ASSERT_NE(nullptr, held_buffers.back().get()); | 410 ASSERT_NE(nullptr, held_buffers.back().get()); |
411 resurrected = ResurrectLastBuffer(gfx::Size(10, 10), GetParam()); | 411 resurrected = ResurrectLastBuffer(gfx::Size(10, 10), GetParam()); |
412 ASSERT_EQ(nullptr, resurrected.get()); | 412 ASSERT_EQ(nullptr, resurrected.get()); |
413 } | 413 } |
414 | 414 |
415 INSTANTIATE_TEST_CASE_P(, | 415 INSTANTIATE_TEST_CASE_P(, |
416 VideoCaptureBufferPoolTest, | 416 VideoCaptureBufferPoolTest, |
417 testing::ValuesIn(kCapturePixelFormatAndStorages)); | 417 testing::ValuesIn(kCapturePixelFormatAndStorages)); |
418 | 418 |
419 } // namespace content | 419 } // namespace content |
OLD | NEW |