Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Side by Side Diff: content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc

Issue 2763383002: Switching AudioInputDeviceManager from using AudioManager interface to AudioSystem one. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698