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

Side by Side Diff: webrtc/test/fake_voice_engine.cc

Issue 1402403008: Changed FakeVoiceEngine into a MockVoiceEngine. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: unneeded include Created 5 years, 1 month 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 | « webrtc/test/fake_voice_engine.h ('k') | webrtc/test/mock_voice_engine.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #include "webrtc/test/fake_voice_engine.h"
12
13 namespace {
14
15 webrtc::AudioDecodingCallStats MakeAudioDecodingCallStats() {
16 webrtc::AudioDecodingCallStats stats;
17 stats.calls_to_silence_generator = 234;
18 stats.calls_to_neteq = 567;
19 stats.decoded_normal = 890;
20 stats.decoded_plc = 123;
21 stats.decoded_cng = 456;
22 stats.decoded_plc_cng = 789;
23 return stats;
24 }
25 } // namespace
26
27 namespace webrtc {
28 namespace test {
29
30 const int FakeVoiceEngine::kSendChannelId = 1;
31 const int FakeVoiceEngine::kRecvChannelId = 2;
32 const uint32_t FakeVoiceEngine::kSendSsrc = 665;
33 const uint32_t FakeVoiceEngine::kRecvSsrc = 667;
34 const int FakeVoiceEngine::kSendEchoDelayMedian = 254;
35 const int FakeVoiceEngine::kSendEchoDelayStdDev = -3;
36 const int FakeVoiceEngine::kSendEchoReturnLoss = -65;
37 const int FakeVoiceEngine::kSendEchoReturnLossEnhancement = 101;
38 const int FakeVoiceEngine::kRecvJitterBufferDelay = -7;
39 const int FakeVoiceEngine::kRecvPlayoutBufferDelay = 302;
40 const unsigned int FakeVoiceEngine::kSendSpeechInputLevel = 96;
41 const unsigned int FakeVoiceEngine::kRecvSpeechOutputLevel = 99;
42
43 const CallStatistics FakeVoiceEngine::kSendCallStats = {
44 1345, 1678, 1901, 1234, 112, 13456, 17890, 1567, -1890, -1123
45 };
46
47 const CodecInst FakeVoiceEngine::kSendCodecInst = {
48 -121, "codec_name_send", 48000, -231, -451, -671
49 };
50
51 const ReportBlock FakeVoiceEngine::kSendReportBlock = {
52 456, 780, 123, 567, 890, 132, 143, 13354
53 };
54
55 const CallStatistics FakeVoiceEngine::kRecvCallStats = {
56 345, 678, 901, 234, -12, 3456, 7890, 567, 890, 123
57 };
58
59 const CodecInst FakeVoiceEngine::kRecvCodecInst = {
60 123, "codec_name_recv", 96000, -187, -198, -103
61 };
62
63 const NetworkStatistics FakeVoiceEngine::kRecvNetworkStats = {
64 123, 456, false, 0, 0, 789, 12, 345, 678, 901, -1, -1, -1, -1, -1, 0
65 };
66
67 const AudioDecodingCallStats FakeVoiceEngine::kRecvAudioDecodingCallStats =
68 MakeAudioDecodingCallStats();
69 } // namespace test
70 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/fake_voice_engine.h ('k') | webrtc/test/mock_voice_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698