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

Side by Side Diff: webrtc/modules/audio_coding/neteq/nack_unittest.cc

Issue 1481493004: audio_coding: remove "main" directory (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 5 years 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/modules/audio_coding/neteq/nack.h ('k') | webrtc/modules/audio_coding/test/ACMTest.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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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
11 #include "webrtc/modules/audio_coding/neteq/nack.h" 11 #include "webrtc/modules/audio_coding/neteq/nack.h"
12 12
13 #include <stdint.h> 13 #include <stdint.h>
14 14
15 #include <algorithm> 15 #include <algorithm>
16 16
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 #include "webrtc/base/scoped_ptr.h" 18 #include "webrtc/base/scoped_ptr.h"
19 #include "webrtc/typedefs.h" 19 #include "webrtc/typedefs.h"
20 #include "webrtc/modules/audio_coding/main/include/audio_coding_module_typedefs. h" 20 #include "webrtc/modules/audio_coding/include/audio_coding_module_typedefs.h"
21 21
22 namespace webrtc { 22 namespace webrtc {
23 namespace { 23 namespace {
24 24
25 const int kNackThreshold = 3; 25 const int kNackThreshold = 3;
26 const int kSampleRateHz = 16000; 26 const int kSampleRateHz = 16000;
27 const int kPacketSizeMs = 30; 27 const int kPacketSizeMs = 30;
28 const uint32_t kTimestampIncrement = 480; // 30 ms. 28 const uint32_t kTimestampIncrement = 480; // 30 ms.
29 const int64_t kShortRoundTripTimeMs = 1; 29 const int64_t kShortRoundTripTimeMs = 1;
30 30
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 // sequence number: 1, 2, 3, 4, 5 473 // sequence number: 1, 2, 3, 4, 5
474 // time-to-play: 20, 50, 80, 110, 140 474 // time-to-play: 20, 50, 80, 110, 140
475 // 475 //
476 std::vector<uint16_t> nack_list = nack->GetNackList(100); 476 std::vector<uint16_t> nack_list = nack->GetNackList(100);
477 ASSERT_EQ(2u, nack_list.size()); 477 ASSERT_EQ(2u, nack_list.size());
478 EXPECT_EQ(4, nack_list[0]); 478 EXPECT_EQ(4, nack_list[0]);
479 EXPECT_EQ(5, nack_list[1]); 479 EXPECT_EQ(5, nack_list[1]);
480 } 480 }
481 481
482 } // namespace webrtc 482 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/nack.h ('k') | webrtc/modules/audio_coding/test/ACMTest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698