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

Side by Side Diff: audio/audio_receive_stream_unittest.cc

Issue 3019513002: Remove the VoiceEngineObserver callback interface. (Closed)
Patch Set: rebase + build error Created 3 years, 2 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
« no previous file with comments | « no previous file | audio/audio_send_stream_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 {}, 789, 12, 345, 678, 901, 0, 68 {}, 789, 12, 345, 678, 901, 0,
69 -1, -1, -1, -1, -1, 0}; 69 -1, -1, -1, -1, -1, 0};
70 const AudioDecodingCallStats kAudioDecodeStats = MakeAudioDecodeStatsForTest(); 70 const AudioDecodingCallStats kAudioDecodeStats = MakeAudioDecodeStatsForTest();
71 71
72 struct ConfigHelper { 72 struct ConfigHelper {
73 ConfigHelper() 73 ConfigHelper()
74 : decoder_factory_(new rtc::RefCountedObject<MockAudioDecoderFactory>), 74 : decoder_factory_(new rtc::RefCountedObject<MockAudioDecoderFactory>),
75 audio_mixer_(new rtc::RefCountedObject<MockAudioMixer>()) { 75 audio_mixer_(new rtc::RefCountedObject<MockAudioMixer>()) {
76 using testing::Invoke; 76 using testing::Invoke;
77 77
78 EXPECT_CALL(voice_engine_,
79 RegisterVoiceEngineObserver(_)).WillOnce(Return(0));
80 EXPECT_CALL(voice_engine_,
81 DeRegisterVoiceEngineObserver()).WillOnce(Return(0));
82 EXPECT_CALL(voice_engine_, audio_device_module()); 78 EXPECT_CALL(voice_engine_, audio_device_module());
83 EXPECT_CALL(voice_engine_, audio_transport()); 79 EXPECT_CALL(voice_engine_, audio_transport());
84 80
85 AudioState::Config config; 81 AudioState::Config config;
86 config.voice_engine = &voice_engine_; 82 config.voice_engine = &voice_engine_;
87 config.audio_mixer = audio_mixer_; 83 config.audio_mixer = audio_mixer_;
88 config.audio_processing = new rtc::RefCountedObject<MockAudioProcessing>(); 84 config.audio_processing = new rtc::RefCountedObject<MockAudioProcessing>();
89 audio_state_ = AudioState::Create(config); 85 audio_state_ = AudioState::Create(config);
90 86
91 EXPECT_CALL(voice_engine_, ChannelProxyFactory(kChannelId)) 87 EXPECT_CALL(voice_engine_, ChannelProxyFactory(kChannelId))
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 376
381 EXPECT_CALL(helper.voice_engine(), StartPlayout(_)).WillOnce(Return(0)); 377 EXPECT_CALL(helper.voice_engine(), StartPlayout(_)).WillOnce(Return(0));
382 EXPECT_CALL(helper.voice_engine(), StopPlayout(_)); 378 EXPECT_CALL(helper.voice_engine(), StopPlayout(_));
383 EXPECT_CALL(*helper.audio_mixer(), AddSource(&recv_stream)) 379 EXPECT_CALL(*helper.audio_mixer(), AddSource(&recv_stream))
384 .WillOnce(Return(true)); 380 .WillOnce(Return(true));
385 381
386 recv_stream.Start(); 382 recv_stream.Start();
387 } 383 }
388 } // namespace test 384 } // namespace test
389 } // namespace webrtc 385 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | audio/audio_send_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698