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

Side by Side Diff: modules/audio_coding/test/TestAllCodecs.cc

Issue 3019543002: Remove various IDs (Closed)
Patch Set: rebase+build error Created 3 years, 2 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 | « modules/audio_coding/test/PacketLossTest.cc ('k') | modules/audio_coding/test/TestRedFec.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) 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 uint32_t TestPack::timestamp_diff() { 98 uint32_t TestPack::timestamp_diff() {
99 return timestamp_diff_; 99 return timestamp_diff_;
100 } 100 }
101 101
102 void TestPack::reset_payload_size() { 102 void TestPack::reset_payload_size() {
103 payload_size_ = 0; 103 payload_size_ = 0;
104 } 104 }
105 105
106 TestAllCodecs::TestAllCodecs(int test_mode) 106 TestAllCodecs::TestAllCodecs(int test_mode)
107 : acm_a_(AudioCodingModule::Create(0)), 107 : acm_a_(AudioCodingModule::Create()),
108 acm_b_(AudioCodingModule::Create(1)), 108 acm_b_(AudioCodingModule::Create()),
109 channel_a_to_b_(NULL), 109 channel_a_to_b_(NULL),
110 test_count_(0), 110 test_count_(0),
111 packet_size_samples_(0), 111 packet_size_samples_(0),
112 packet_size_bytes_(0) { 112 packet_size_bytes_(0) {
113 // test_mode = 0 for silent test (auto test) 113 // test_mode = 0 for silent test (auto test)
114 test_mode_ = test_mode; 114 test_mode_ = test_mode;
115 } 115 }
116 116
117 TestAllCodecs::~TestAllCodecs() { 117 TestAllCodecs::~TestAllCodecs() {
118 if (channel_a_to_b_ != NULL) { 118 if (channel_a_to_b_ != NULL) {
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 } 481 }
482 482
483 void TestAllCodecs::DisplaySendReceiveCodec() { 483 void TestAllCodecs::DisplaySendReceiveCodec() {
484 CodecInst my_codec_param; 484 CodecInst my_codec_param;
485 printf("%s -> ", acm_a_->SendCodec()->plname); 485 printf("%s -> ", acm_a_->SendCodec()->plname);
486 acm_b_->ReceiveCodec(&my_codec_param); 486 acm_b_->ReceiveCodec(&my_codec_param);
487 printf("%s\n", my_codec_param.plname); 487 printf("%s\n", my_codec_param.plname);
488 } 488 }
489 489
490 } // namespace webrtc 490 } // namespace webrtc
OLDNEW
« no previous file with comments | « modules/audio_coding/test/PacketLossTest.cc ('k') | modules/audio_coding/test/TestRedFec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698