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 "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 5 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <memory> | 8 #include <memory> |
9 #include <queue> | 9 #include <queue> |
10 #include <string> | 10 #include <string> |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 return false; | 422 return false; |
423 } | 423 } |
424 return true; | 424 return true; |
425 } | 425 } |
426 | 426 |
427 scoped_refptr<MockMediaStreamDispatcherHost> host_; | 427 scoped_refptr<MockMediaStreamDispatcherHost> host_; |
428 std::unique_ptr<MediaStreamManager> media_stream_manager_; | 428 std::unique_ptr<MediaStreamManager> media_stream_manager_; |
429 content::TestBrowserThreadBundle thread_bundle_; | 429 content::TestBrowserThreadBundle thread_bundle_; |
430 std::unique_ptr<media::AudioManager, media::AudioManagerDeleter> | 430 std::unique_ptr<media::AudioManager, media::AudioManagerDeleter> |
431 audio_manager_; | 431 audio_manager_; |
432 std::unique_ptr<media::AudioSystem> audio_system_; | 432 media::AudioSystem::UniquePtr audio_system_; |
433 MockMediaStreamUIProxy* stream_ui_; | 433 MockMediaStreamUIProxy* stream_ui_; |
434 ContentBrowserClient* old_browser_client_; | 434 ContentBrowserClient* old_browser_client_; |
435 std::unique_ptr<ContentClient> content_client_; | 435 std::unique_ptr<ContentClient> content_client_; |
436 content::TestBrowserContext browser_context_; | 436 content::TestBrowserContext browser_context_; |
437 media::AudioDeviceDescriptions physical_audio_devices_; | 437 media::AudioDeviceDescriptions physical_audio_devices_; |
438 media::VideoCaptureDeviceDescriptors physical_video_devices_; | 438 media::VideoCaptureDeviceDescriptors physical_video_devices_; |
439 url::Origin origin_; | 439 url::Origin origin_; |
440 media::FakeVideoCaptureDeviceFactory* video_capture_device_factory_; | 440 media::FakeVideoCaptureDeviceFactory* video_capture_device_factory_; |
441 }; | 441 }; |
442 | 442 |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 base::RunLoop run_loop; | 853 base::RunLoop run_loop; |
854 EXPECT_CALL(*host_.get(), OnDeviceStopped(kRenderId)) | 854 EXPECT_CALL(*host_.get(), OnDeviceStopped(kRenderId)) |
855 .WillOnce(testing::InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit)); | 855 .WillOnce(testing::InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit)); |
856 media_stream_manager_->media_devices_manager()->OnDevicesChanged( | 856 media_stream_manager_->media_devices_manager()->OnDevicesChanged( |
857 base::SystemMonitor::DEVTYPE_VIDEO_CAPTURE); | 857 base::SystemMonitor::DEVTYPE_VIDEO_CAPTURE); |
858 | 858 |
859 run_loop.Run(); | 859 run_loop.Run(); |
860 } | 860 } |
861 | 861 |
862 }; // namespace content | 862 }; // namespace content |
OLD | NEW |