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

Side by Side Diff: webrtc/modules/audio_coding/test/APITest.cc

Issue 2667383008: Move one CircularBuffer to webrtc::test namespace. (Closed)
Patch Set: Rebase. Created 3 years, 10 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 | « no previous file | webrtc/modules/audio_coding/test/utility.h » ('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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 Channel* myChannel; 671 Channel* myChannel;
672 int32_t* myMinDelay; 672 int32_t* myMinDelay;
673 EventTimerWrapper* myEvent = EventTimerWrapper::Create(); 673 EventTimerWrapper* myEvent = EventTimerWrapper::Create();
674 674
675 uint32_t inTimestamp = 0; 675 uint32_t inTimestamp = 0;
676 double estimDelay = 0; 676 double estimDelay = 0;
677 677
678 double averageEstimDelay = 0; 678 double averageEstimDelay = 0;
679 double averageDelay = 0; 679 double averageDelay = 0;
680 680
681 CircularBuffer estimDelayCB(100); 681 test::CircularBuffer estimDelayCB(100);
682 estimDelayCB.SetArithMean(true); 682 estimDelayCB.SetArithMean(true);
683 683
684 if (side == 'A') { 684 if (side == 'A') {
685 myACM = _acmA.get(); 685 myACM = _acmA.get();
686 myChannel = _channel_B2A; 686 myChannel = _channel_B2A;
687 myMinDelay = &_minDelayA; 687 myMinDelay = &_minDelayA;
688 } else { 688 } else {
689 myACM = _acmB.get(); 689 myACM = _acmB.get();
690 myChannel = _channel_A2B; 690 myChannel = _channel_A2B;
691 myMinDelay = &_minDelayB; 691 myMinDelay = &_minDelayB;
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 CHECK_ERROR_MT(myACM->RegisterSendCodec(myCodec)); 1106 CHECK_ERROR_MT(myACM->RegisterSendCodec(myCodec));
1107 myChannel->ResetStats(); 1107 myChannel->ResetStats();
1108 { 1108 {
1109 WriteLockScoped wl(_apiTestRWLock); 1109 WriteLockScoped wl(_apiTestRWLock);
1110 *thereIsEncoder = true; 1110 *thereIsEncoder = true;
1111 } 1111 }
1112 Wait(500); 1112 Wait(500);
1113 } 1113 }
1114 1114
1115 } // namespace webrtc 1115 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/test/utility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698