OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |