| 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 // Unit test for VideoCaptureManager. | 5 // Unit test for VideoCaptureManager. |
| 6 | 6 |
| 7 #include "content/browser/renderer_host/media/video_capture_manager.h" | 7 #include "content/browser/renderer_host/media/video_capture_manager.h" |
| 8 | 8 |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/bind.h" | 14 #include "base/bind.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
| 18 #include "content/browser/browser_thread_impl.h" | 18 #include "content/browser/browser_thread_impl.h" |
| 19 #include "content/browser/renderer_host/media/media_stream_provider.h" | 19 #include "content/browser/renderer_host/media/media_stream_provider.h" |
| 20 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" | 20 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" |
| 21 #include "content/common/media/media_stream_options.h" | 21 #include "content/common/media/media_stream_options.h" |
| 22 #include "media/capture/video/fake_video_capture_device_factory.h" | 22 #include "device/capture/video/fake_video_capture_device_factory.h" |
| 23 #include "testing/gmock/include/gmock/gmock.h" | 23 #include "testing/gmock/include/gmock/gmock.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
| 25 | 25 |
| 26 using ::testing::_; | 26 using ::testing::_; |
| 27 using ::testing::AnyNumber; | 27 using ::testing::AnyNumber; |
| 28 using ::testing::DoAll; | 28 using ::testing::DoAll; |
| 29 using ::testing::InSequence; | 29 using ::testing::InSequence; |
| 30 using ::testing::InvokeWithoutArgs; | 30 using ::testing::InvokeWithoutArgs; |
| 31 using ::testing::Return; | 31 using ::testing::Return; |
| 32 using ::testing::SaveArg; | 32 using ::testing::SaveArg; |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 // Wait to check callbacks before removing the listener. | 616 // Wait to check callbacks before removing the listener. |
| 617 message_loop_->RunUntilIdle(); | 617 message_loop_->RunUntilIdle(); |
| 618 vcm_->Unregister(); | 618 vcm_->Unregister(); |
| 619 } | 619 } |
| 620 #endif | 620 #endif |
| 621 | 621 |
| 622 // TODO(mcasas): Add a test to check consolidation of the supported formats | 622 // TODO(mcasas): Add a test to check consolidation of the supported formats |
| 623 // provided by the device when http://crbug.com/323913 is closed. | 623 // provided by the device when http://crbug.com/323913 is closed. |
| 624 | 624 |
| 625 } // namespace content | 625 } // namespace content |
| OLD | NEW |