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

Side by Side Diff: webrtc/modules/audio_coding/codecs/builtin_audio_encoder_factory_unittest.cc

Issue 2799033006: Injectable audio encoders: Moved audio encoder, factory and builtin factory to api/. (Closed)
Patch Set: More backwards-compatibility! Created 3 years, 7 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) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 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 <limits> 11 #include <limits>
12 #include <memory> 12 #include <memory>
13 #include <vector> 13 #include <vector>
14 14
15 #include "webrtc/modules/audio_coding/codecs/builtin_audio_encoder_factory.h" 15 #include "webrtc/api/audio_codecs/builtin_audio_encoder_factory.h"
16 #include "webrtc/test/gmock.h" 16 #include "webrtc/test/gmock.h"
17 #include "webrtc/test/gtest.h" 17 #include "webrtc/test/gtest.h"
18 18
19 namespace webrtc { 19 namespace webrtc {
20 20
21 class AudioEncoderFactoryTest 21 class AudioEncoderFactoryTest
22 : public ::testing::TestWithParam<rtc::scoped_refptr<AudioEncoderFactory>> { 22 : public ::testing::TestWithParam<rtc::scoped_refptr<AudioEncoderFactory>> {
23 }; 23 };
24 24
25 TEST_P(AudioEncoderFactoryTest, SupportsAtLeastOneFormat) { 25 TEST_P(AudioEncoderFactoryTest, SupportsAtLeastOneFormat) {
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 #ifdef WEBRTC_CODEC_ILBC 136 #ifdef WEBRTC_CODEC_ILBC
137 {"ilbc", 8000, 1}, 137 {"ilbc", 8000, 1},
138 #endif 138 #endif
139 {"pcmu", 8000, 1}, 139 {"pcmu", 8000, 1},
140 {"pcma", 8000, 1} 140 {"pcma", 8000, 1}
141 }; 141 };
142 142
143 ASSERT_THAT(supported_formats, ElementsAreArray(expected_formats)); 143 ASSERT_THAT(supported_formats, ElementsAreArray(expected_formats));
144 } 144 }
145 } // namespace webrtc 145 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698