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

Side by Side Diff: content/renderer/media/webrtc_audio_renderer_unittest.cc

Issue 1615433002: Roll WebRTC 11523:11548, Libjingle 11522:11545 (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rolling to webrtc@11548 instead to pull in a fix Created 4 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/renderer/media/webrtc_audio_renderer.h" 5 #include "content/renderer/media/webrtc_audio_renderer.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "content/public/renderer/media_stream_audio_renderer.h" 14 #include "content/public/renderer/media_stream_audio_renderer.h"
15 #include "content/renderer/media/audio_device_factory.h" 15 #include "content/renderer/media/audio_device_factory.h"
16 #include "content/renderer/media/audio_message_filter.h" 16 #include "content/renderer/media/audio_message_filter.h"
17 #include "content/renderer/media/webrtc/mock_peer_connection_dependency_factory. h" 17 #include "content/renderer/media/webrtc/mock_peer_connection_dependency_factory. h"
18 #include "content/renderer/media/webrtc_audio_device_impl.h" 18 #include "content/renderer/media/webrtc_audio_device_impl.h"
19 #include "media/audio/audio_output_device.h" 19 #include "media/audio/audio_output_device.h"
20 #include "media/audio/audio_output_ipc.h" 20 #include "media/audio/audio_output_ipc.h"
21 #include "media/base/audio_bus.h" 21 #include "media/base/audio_bus.h"
22 #include "media/base/mock_audio_renderer_sink.h" 22 #include "media/base/mock_audio_renderer_sink.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 #include "third_party/WebKit/public/platform/WebMediaStream.h" 25 #include "third_party/WebKit/public/platform/WebMediaStream.h"
26 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" 26 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
27 #include "third_party/WebKit/public/web/WebHeap.h" 27 #include "third_party/WebKit/public/web/WebHeap.h"
28 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" 28 #include "third_party/webrtc/api/mediastreaminterface.h"
29 29
30 using testing::Return; 30 using testing::Return;
31 using testing::_; 31 using testing::_;
32 32
33 namespace content { 33 namespace content {
34 34
35 namespace { 35 namespace {
36 36
37 const int kHardwareSampleRate = 44100; 37 const int kHardwareSampleRate = 44100;
38 const int kHardwareBufferSize = 512; 38 const int kHardwareBufferSize = 512;
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 base::Unretained(this), &loop)); 312 base::Unretained(this), &loop));
313 loop.Run(); 313 loop.Run();
314 EXPECT_EQ(kDefaultOutputDeviceId, mock_output_device_->GetDeviceId()); 314 EXPECT_EQ(kDefaultOutputDeviceId, mock_output_device_->GetDeviceId());
315 315
316 EXPECT_CALL(*mock_output_device_.get(), Stop()); 316 EXPECT_CALL(*mock_output_device_.get(), Stop());
317 EXPECT_CALL(*source_.get(), RemoveAudioRenderer(renderer_.get())); 317 EXPECT_CALL(*source_.get(), RemoveAudioRenderer(renderer_.get()));
318 renderer_proxy_->Stop(); 318 renderer_proxy_->Stop();
319 } 319 }
320 320
321 } // namespace content 321 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc_audio_renderer.cc ('k') | content/renderer/media/webrtc_local_audio_track_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698