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

Side by Side Diff: modules/audio_coding/acm2/acm_send_test.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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 10 matching lines...) Expand all
21 #include "rtc_base/checks.h" 21 #include "rtc_base/checks.h"
22 #include "test/gtest.h" 22 #include "test/gtest.h"
23 23
24 namespace webrtc { 24 namespace webrtc {
25 namespace test { 25 namespace test {
26 26
27 AcmSendTestOldApi::AcmSendTestOldApi(InputAudioFile* audio_source, 27 AcmSendTestOldApi::AcmSendTestOldApi(InputAudioFile* audio_source,
28 int source_rate_hz, 28 int source_rate_hz,
29 int test_duration_ms) 29 int test_duration_ms)
30 : clock_(0), 30 : clock_(0),
31 acm_(webrtc::AudioCodingModule::Create(0, &clock_)), 31 acm_(webrtc::AudioCodingModule::Create(&clock_)),
32 audio_source_(audio_source), 32 audio_source_(audio_source),
33 source_rate_hz_(source_rate_hz), 33 source_rate_hz_(source_rate_hz),
34 input_block_size_samples_( 34 input_block_size_samples_(
35 static_cast<size_t>(source_rate_hz_ * kBlockSizeMs / 1000)), 35 static_cast<size_t>(source_rate_hz_ * kBlockSizeMs / 1000)),
36 codec_registered_(false), 36 codec_registered_(false),
37 test_duration_ms_(test_duration_ms), 37 test_duration_ms_(test_duration_ms),
38 frame_type_(kAudioFrameSpeech), 38 frame_type_(kAudioFrameSpeech),
39 payload_type_(0), 39 payload_type_(0),
40 timestamp_(0), 40 timestamp_(0),
41 sequence_number_(0) { 41 sequence_number_(0) {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 last_payload_vec_.size()); 151 last_payload_vec_.size());
152 std::unique_ptr<Packet> packet( 152 std::unique_ptr<Packet> packet(
153 new Packet(packet_memory, allocated_bytes, clock_.TimeInMilliseconds())); 153 new Packet(packet_memory, allocated_bytes, clock_.TimeInMilliseconds()));
154 RTC_DCHECK(packet); 154 RTC_DCHECK(packet);
155 RTC_DCHECK(packet->valid_header()); 155 RTC_DCHECK(packet->valid_header());
156 return packet; 156 return packet;
157 } 157 }
158 158
159 } // namespace test 159 } // namespace test
160 } // namespace webrtc 160 } // namespace webrtc
OLDNEW
« no previous file with comments | « modules/audio_coding/acm2/acm_receive_test.cc ('k') | modules/audio_coding/acm2/audio_coding_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698