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

Side by Side Diff: webrtc/modules/audio_coding/main/acm2/acm_receive_test.h

Issue 1172163004: Reformat existing code. There should be no functional effects. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 6 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 17 matching lines...) Expand all
28 enum NumOutputChannels { 28 enum NumOutputChannels {
29 kArbitraryChannels = 0, 29 kArbitraryChannels = 0,
30 kMonoOutput = 1, 30 kMonoOutput = 1,
31 kStereoOutput = 2 31 kStereoOutput = 2
32 }; 32 };
33 33
34 AcmReceiveTest( 34 AcmReceiveTest(
35 PacketSource* packet_source, 35 PacketSource* packet_source,
36 AudioSink* audio_sink, 36 AudioSink* audio_sink,
37 int output_freq_hz, 37 int output_freq_hz,
38 NumOutputChannels exptected_output_channels); 38 NumOutputChannels expected_output_channels);
39 virtual ~AcmReceiveTest() {} 39 virtual ~AcmReceiveTest() {}
40 40
41 // Registers the codecs with default parameters from ACM. 41 // Registers the codecs with default parameters from ACM.
42 void RegisterDefaultCodecs(); 42 void RegisterDefaultCodecs();
43 43
44 // Registers codecs with payload types matching the pre-encoded NetEq test 44 // Registers codecs with payload types matching the pre-encoded NetEq test
45 // files. 45 // files.
46 void RegisterNetEqTestCodecs(); 46 void RegisterNetEqTestCodecs();
47 47
48 // Runs the test and returns true if successful. 48 // Runs the test and returns true if successful.
49 void Run(); 49 void Run();
50 50
51 private: 51 private:
52 SimulatedClock clock_; 52 SimulatedClock clock_;
53 rtc::scoped_ptr<AudioCoding> acm_; 53 rtc::scoped_ptr<AudioCoding> acm_;
54 PacketSource* packet_source_; 54 PacketSource* packet_source_;
55 AudioSink* audio_sink_; 55 AudioSink* audio_sink_;
56 const int output_freq_hz_; 56 const int output_freq_hz_;
57 NumOutputChannels exptected_output_channels_; 57 NumOutputChannels expected_output_channels_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(AcmReceiveTest); 59 DISALLOW_COPY_AND_ASSIGN(AcmReceiveTest);
60 }; 60 };
61 61
62 } // namespace test 62 } // namespace test
63 } // namespace webrtc 63 } // namespace webrtc
64 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_RECEIVE_TEST_H_ 64 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_RECEIVE_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698