Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/browser/renderer_host/media/video_capture_device_client.h" | 5 // Note that this test does not exercise the class VideoCaptureDeviceClient |
| 6 // in isolation. The "unit under test" is an instance of | |
| 7 // VideoCaptureDeviceClient with some context that is specific to | |
| 8 // renderer_host/media, and therefore this test must lives here and not in | |
|
mcasas
2016/09/22 21:41:56
s/lives/live/ and the same comment as before.
chfremer
2016/09/22 23:41:52
Done.
| |
| 9 // media/capture/video. | |
| 10 | |
| 11 #include "media/capture/video/video_capture_device_client.h" | |
| 6 | 12 |
| 7 #include <stddef.h> | 13 #include <stddef.h> |
| 8 | 14 |
| 9 #include <memory> | 15 #include <memory> |
| 10 | 16 |
| 11 #include "base/bind.h" | 17 #include "base/bind.h" |
| 12 #include "base/logging.h" | 18 #include "base/logging.h" |
| 13 #include "base/macros.h" | 19 #include "base/macros.h" |
| 14 #include "base/run_loop.h" | 20 #include "base/run_loop.h" |
| 15 #include "base/single_thread_task_runner.h" | 21 #include "base/single_thread_task_runner.h" |
| 16 #include "base/threading/thread_task_runner_handle.h" | 22 #include "base/threading/thread_task_runner_handle.h" |
| 17 #include "build/build_config.h" | 23 #include "build/build_config.h" |
| 18 #include "content/browser/renderer_host/media/video_capture_buffer_pool.h" | |
| 19 #include "content/browser/renderer_host/media/video_capture_controller.h" | 24 #include "content/browser/renderer_host/media/video_capture_controller.h" |
| 20 #include "content/public/test/test_browser_thread_bundle.h" | 25 #include "content/public/test/test_browser_thread_bundle.h" |
| 21 #include "media/base/limits.h" | 26 #include "media/base/limits.h" |
| 27 #include "media/capture/video/video_capture_buffer_pool.h" | |
| 22 #include "testing/gmock/include/gmock/gmock.h" | 28 #include "testing/gmock/include/gmock/gmock.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
| 24 | 30 |
| 25 using ::testing::_; | 31 using ::testing::_; |
| 26 using ::testing::Mock; | 32 using ::testing::Mock; |
| 27 using ::testing::InSequence; | 33 using ::testing::InSequence; |
| 28 using ::testing::SaveArg; | 34 using ::testing::SaveArg; |
| 29 | 35 |
| 30 namespace content { | 36 namespace content { |
| 31 | 37 |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 224 | 230 |
| 225 EXPECT_EQ(coded_size.width(), size_and_rotation.output_resolution.width()); | 231 EXPECT_EQ(coded_size.width(), size_and_rotation.output_resolution.width()); |
| 226 EXPECT_EQ(coded_size.height(), | 232 EXPECT_EQ(coded_size.height(), |
| 227 size_and_rotation.output_resolution.height()); | 233 size_and_rotation.output_resolution.height()); |
| 228 | 234 |
| 229 Mock::VerifyAndClearExpectations(controller_.get()); | 235 Mock::VerifyAndClearExpectations(controller_.get()); |
| 230 } | 236 } |
| 231 } | 237 } |
| 232 | 238 |
| 233 } // namespace content | 239 } // namespace content |
| OLD | NEW |