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

Side by Side Diff: webrtc/audio/audio_receive_stream_unittest.cc

Issue 1534193008: Misc. small cleanups (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Unnecessary parens Created 4 years, 11 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 | « talk/media/base/codec.cc ('k') | webrtc/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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const uint32_t kLocalSsrc = 5678; 42 const uint32_t kLocalSsrc = 5678;
43 const size_t kAbsoluteSendTimeLength = 4; 43 const size_t kAbsoluteSendTimeLength = 4;
44 const int kAbsSendTimeId = 2; 44 const int kAbsSendTimeId = 2;
45 const int kAudioLevelId = 3; 45 const int kAudioLevelId = 3;
46 const int kJitterBufferDelay = -7; 46 const int kJitterBufferDelay = -7;
47 const int kPlayoutBufferDelay = 302; 47 const int kPlayoutBufferDelay = 302;
48 const unsigned int kSpeechOutputLevel = 99; 48 const unsigned int kSpeechOutputLevel = 99;
49 const CallStatistics kCallStats = { 49 const CallStatistics kCallStats = {
50 345, 678, 901, 234, -12, 3456, 7890, 567, 890, 123}; 50 345, 678, 901, 234, -12, 3456, 7890, 567, 890, 123};
51 const CodecInst kCodecInst = { 51 const CodecInst kCodecInst = {
52 123, "codec_name_recv", 96000, -187, -198, -103}; 52 123, "codec_name_recv", 96000, -187, 0, -103};
53 const NetworkStatistics kNetworkStats = { 53 const NetworkStatistics kNetworkStats = {
54 123, 456, false, 0, 0, 789, 12, 345, 678, 901, -1, -1, -1, -1, -1, 0}; 54 123, 456, false, 0, 0, 789, 12, 345, 678, 901, -1, -1, -1, -1, -1, 0};
55 const AudioDecodingCallStats kAudioDecodeStats = MakeAudioDecodeStatsForTest(); 55 const AudioDecodingCallStats kAudioDecodeStats = MakeAudioDecodeStatsForTest();
56 56
57 struct ConfigHelper { 57 struct ConfigHelper {
58 ConfigHelper() { 58 ConfigHelper() {
59 using testing::Invoke; 59 using testing::Invoke;
60 60
61 EXPECT_CALL(voice_engine_, 61 EXPECT_CALL(voice_engine_,
62 RegisterVoiceEngineObserver(_)).WillOnce(Return(0)); 62 RegisterVoiceEngineObserver(_)).WillOnce(Return(0));
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 EXPECT_EQ(kAudioDecodeStats.calls_to_neteq, stats.decoding_calls_to_neteq); 236 EXPECT_EQ(kAudioDecodeStats.calls_to_neteq, stats.decoding_calls_to_neteq);
237 EXPECT_EQ(kAudioDecodeStats.decoded_normal, stats.decoding_normal); 237 EXPECT_EQ(kAudioDecodeStats.decoded_normal, stats.decoding_normal);
238 EXPECT_EQ(kAudioDecodeStats.decoded_plc, stats.decoding_plc); 238 EXPECT_EQ(kAudioDecodeStats.decoded_plc, stats.decoding_plc);
239 EXPECT_EQ(kAudioDecodeStats.decoded_cng, stats.decoding_cng); 239 EXPECT_EQ(kAudioDecodeStats.decoded_cng, stats.decoding_cng);
240 EXPECT_EQ(kAudioDecodeStats.decoded_plc_cng, stats.decoding_plc_cng); 240 EXPECT_EQ(kAudioDecodeStats.decoded_plc_cng, stats.decoding_plc_cng);
241 EXPECT_EQ(kCallStats.capture_start_ntp_time_ms_, 241 EXPECT_EQ(kCallStats.capture_start_ntp_time_ms_,
242 stats.capture_start_ntp_time_ms); 242 stats.capture_start_ntp_time_ms);
243 } 243 }
244 } // namespace test 244 } // namespace test
245 } // namespace webrtc 245 } // namespace webrtc
OLDNEW
« no previous file with comments | « talk/media/base/codec.cc ('k') | webrtc/audio/audio_send_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698