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

Side by Side Diff: webrtc/modules/audio_conference_mixer/test/audio_conference_mixer_unittest.cc

Issue 1703833002: Remove ignored return code from modules. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 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 /* 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 139
140 // Last participant gives audio frame with passive VAD, although it has the 140 // Last participant gives audio frame with passive VAD, although it has the
141 // largest energy. 141 // largest energy.
142 participants[kParticipants - 1].fake_frame()->vad_activity_ = 142 participants[kParticipants - 1].fake_frame()->vad_activity_ =
143 AudioFrame::kVadPassive; 143 AudioFrame::kVadPassive;
144 144
145 EXPECT_CALL(output_receiver, NewMixedAudio(_, _, _, _)) 145 EXPECT_CALL(output_receiver, NewMixedAudio(_, _, _, _))
146 .Times(AtLeast(1)); 146 .Times(AtLeast(1));
147 147
148 EXPECT_EQ(0, mixer->Process()); 148 mixer->Process();
149 149
150 for (int i = 0; i < kParticipants; ++i) { 150 for (int i = 0; i < kParticipants; ++i) {
151 bool is_mixed = participants[i].IsMixed(); 151 bool is_mixed = participants[i].IsMixed();
152 if (i == kParticipants - 1 || i < kParticipants - 1 - 152 if (i == kParticipants - 1 || i < kParticipants - 1 -
153 AudioConferenceMixer::kMaximumAmountOfMixedParticipants) { 153 AudioConferenceMixer::kMaximumAmountOfMixedParticipants) {
154 EXPECT_FALSE(is_mixed) << "Mixing status of Participant #" 154 EXPECT_FALSE(is_mixed) << "Mixing status of Participant #"
155 << i << " wrong."; 155 << i << " wrong.";
156 } else { 156 } else {
157 EXPECT_TRUE(is_mixed) << "Mixing status of Participant #" 157 EXPECT_TRUE(is_mixed) << "Mixing status of Participant #"
158 << i << " wrong."; 158 << i << " wrong.";
159 } 159 }
160 } 160 }
161 161
162 EXPECT_EQ(0, mixer->UnRegisterMixedStreamCallback()); 162 EXPECT_EQ(0, mixer->UnRegisterMixedStreamCallback());
163 } 163 }
164 164
165 } // namespace webrtc 165 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698