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

Side by Side Diff: webrtc/voice_engine/test/auto_test/voe_cpu_test.cc

Issue 2453243003: Remove voe::Channel::StopReceive() and associated logic. (Closed)
Patch Set: comment Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 std::unique_ptr<VoiceChannelTransport> voice_socket_transport( 68 std::unique_ptr<VoiceChannelTransport> voice_socket_transport(
69 new VoiceChannelTransport(voe_network, channel)); 69 new VoiceChannelTransport(voe_network, channel));
70 70
71 CHECK(voice_socket_transport->SetSendDestination("127.0.0.1", 5566)); 71 CHECK(voice_socket_transport->SetSendDestination("127.0.0.1", 5566));
72 CHECK(voice_socket_transport->SetLocalReceiver(5566)); 72 CHECK(voice_socket_transport->SetLocalReceiver(5566));
73 73
74 CHECK(codec->SetRecPayloadType(channel, isac)); 74 CHECK(codec->SetRecPayloadType(channel, isac));
75 CHECK(codec->SetSendCodec(channel, isac)); 75 CHECK(codec->SetSendCodec(channel, isac));
76 76
77 CHECK(base->StartReceive(channel));
78 CHECK(base->StartPlayout(channel)); 77 CHECK(base->StartPlayout(channel));
79 CHECK(base->StartSend(channel)); 78 CHECK(base->StartSend(channel));
80 CHECK(file->StartPlayingFileAsMicrophone(channel, _mgr.AudioFilename(), 79 CHECK(file->StartPlayingFileAsMicrophone(channel, _mgr.AudioFilename(),
81 true, true)); 80 true, true));
82 81
83 CHECK(codec->SetVADStatus(channel, true)); 82 CHECK(codec->SetVADStatus(channel, true));
84 CHECK(apm->SetAgcStatus(true, kAgcAdaptiveAnalog)); 83 CHECK(apm->SetAgcStatus(true, kAgcAdaptiveAnalog));
85 CHECK(apm->SetNsStatus(true, kNsModerateSuppression)); 84 CHECK(apm->SetNsStatus(true, kNsModerateSuppression));
86 CHECK(apm->SetEcStatus(true, kEcAec)); 85 CHECK(apm->SetEcStatus(true, kEcAec));
87 86
88 TEST_LOG("\nMeasure CPU and memory while running a full-duplex" 87 TEST_LOG("\nMeasure CPU and memory while running a full-duplex"
89 " iSAC-swb call.\n\n"); 88 " iSAC-swb call.\n\n");
90 89
91 PAUSE 90 PAUSE
92 91
93 CHECK(base->StopSend(channel)); 92 CHECK(base->StopSend(channel));
94 CHECK(base->StopPlayout(channel)); 93 CHECK(base->StopPlayout(channel));
95 CHECK(base->StopReceive(channel));
96 94
97 base->DeleteChannel(channel); 95 base->DeleteChannel(channel);
98 CHECK(base->Terminate()); 96 CHECK(base->Terminate());
99 return 0; 97 return 0;
100 } 98 }
101 99
102 } // namespace voetest 100 } // namespace voetest
OLDNEW
« no previous file with comments | « webrtc/voice_engine/test/auto_test/standard/rtp_rtcp_test.cc ('k') | webrtc/voice_engine/test/auto_test/voe_stress_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698