| 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 VideoCaptureController. | 5 // Unit test for VideoCaptureController. |
| 6 | 6 |
| 7 #include "content/browser/renderer_host/media/video_capture_controller.h" | 7 #include "content/browser/renderer_host/media/video_capture_controller.h" |
| 8 | 8 |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <string.h> | 10 #include <string.h> |
| 11 | 11 |
| 12 #include <memory> | 12 #include <memory> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <utility> | 14 #include <utility> |
| 15 | 15 |
| 16 #include "base/bind.h" | 16 #include "base/bind.h" |
| 17 #include "base/bind_helpers.h" | 17 #include "base/bind_helpers.h" |
| 18 #include "base/location.h" | 18 #include "base/location.h" |
| 19 #include "base/macros.h" | 19 #include "base/macros.h" |
| 20 #include "base/memory/ptr_util.h" |
| 20 #include "base/memory/ref_counted.h" | 21 #include "base/memory/ref_counted.h" |
| 21 #include "base/run_loop.h" | 22 #include "base/run_loop.h" |
| 22 #include "base/single_thread_task_runner.h" | 23 #include "base/single_thread_task_runner.h" |
| 23 #include "base/threading/thread_task_runner_handle.h" | 24 #include "base/threading/thread_task_runner_handle.h" |
| 24 #include "content/browser/renderer_host/media/media_stream_provider.h" | 25 #include "content/browser/renderer_host/media/media_stream_provider.h" |
| 25 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" | 26 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" |
| 26 #include "content/browser/renderer_host/media/video_capture_manager.h" | 27 #include "content/browser/renderer_host/media/video_capture_manager.h" |
| 27 #include "content/common/media/media_stream_options.h" | 28 #include "content/common/media/media_stream_options.h" |
| 28 #include "content/public/test/test_browser_thread_bundle.h" | 29 #include "content/public/test/test_browser_thread_bundle.h" |
| 29 #include "media/base/video_frame_metadata.h" | 30 #include "media/base/video_frame_metadata.h" |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 Mock::VerifyAndClearExpectations(client_a_.get()); | 586 Mock::VerifyAndClearExpectations(client_a_.get()); |
| 586 | 587 |
| 587 // Second client connects after the error state. It also should get told of | 588 // Second client connects after the error state. It also should get told of |
| 588 // the error. | 589 // the error. |
| 589 EXPECT_CALL(*client_b_, DoError(route_id)).Times(1); | 590 EXPECT_CALL(*client_b_, DoError(route_id)).Times(1); |
| 590 controller_->AddClient(route_id, client_b_.get(), 200, session_200); | 591 controller_->AddClient(route_id, client_b_.get(), 200, session_200); |
| 591 Mock::VerifyAndClearExpectations(client_b_.get()); | 592 Mock::VerifyAndClearExpectations(client_b_.get()); |
| 592 } | 593 } |
| 593 | 594 |
| 594 } // namespace content | 595 } // namespace content |
| OLD | NEW |