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

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

Issue 1406123011: Let AudioCodingModule::SendCodec return Maybe<CodecInst> (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: review fix 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
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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 std::ostringstream test_number_str; 470 std::ostringstream test_number_str;
471 test_number_str << test_number; 471 test_number_str << test_number;
472 filename += "testallcodecs_out_"; 472 filename += "testallcodecs_out_";
473 filename += test_number_str.str(); 473 filename += test_number_str.str();
474 filename += ".pcm"; 474 filename += ".pcm";
475 outfile_b_.Open(filename, 32000, "wb"); 475 outfile_b_.Open(filename, 32000, "wb");
476 } 476 }
477 477
478 void TestAllCodecs::DisplaySendReceiveCodec() { 478 void TestAllCodecs::DisplaySendReceiveCodec() {
479 CodecInst my_codec_param; 479 CodecInst my_codec_param;
480 acm_a_->SendCodec(&my_codec_param); 480 printf("%s -> ", acm_a_->SendCodec()->plname);
481 printf("%s -> ", my_codec_param.plname);
482 acm_b_->ReceiveCodec(&my_codec_param); 481 acm_b_->ReceiveCodec(&my_codec_param);
483 printf("%s\n", my_codec_param.plname); 482 printf("%s\n", my_codec_param.plname);
484 } 483 }
485 484
486 } // namespace webrtc 485 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/main/test/PacketLossTest.cc ('k') | webrtc/modules/audio_coding/main/test/TestStereo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698