OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 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/api/localaudiosource.h" | 11 #include "webrtc/pc/localaudiosource.h" |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "webrtc/api/test/fakeconstraints.h" | 16 #include "webrtc/api/test/fakeconstraints.h" |
17 #include "webrtc/base/gunit.h" | 17 #include "webrtc/base/gunit.h" |
18 #include "webrtc/media/base/fakemediaengine.h" | 18 #include "webrtc/media/base/fakemediaengine.h" |
19 #include "webrtc/media/base/fakevideorenderer.h" | 19 #include "webrtc/media/base/fakevideorenderer.h" |
20 | 20 |
21 using webrtc::LocalAudioSource; | 21 using webrtc::LocalAudioSource; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 PeerConnectionFactoryInterface::Options(), &audio_options); | 104 PeerConnectionFactoryInterface::Options(), &audio_options); |
105 EXPECT_EQ(rtc::Optional<bool>(true), source->options().highpass_filter); | 105 EXPECT_EQ(rtc::Optional<bool>(true), source->options().highpass_filter); |
106 } | 106 } |
107 | 107 |
108 TEST(LocalAudioSourceTest, InitWithNoOptions) { | 108 TEST(LocalAudioSourceTest, InitWithNoOptions) { |
109 rtc::scoped_refptr<LocalAudioSource> source = | 109 rtc::scoped_refptr<LocalAudioSource> source = |
110 LocalAudioSource::Create(PeerConnectionFactoryInterface::Options(), | 110 LocalAudioSource::Create(PeerConnectionFactoryInterface::Options(), |
111 (cricket::AudioOptions*)nullptr); | 111 (cricket::AudioOptions*)nullptr); |
112 EXPECT_EQ(rtc::Optional<bool>(), source->options().highpass_filter); | 112 EXPECT_EQ(rtc::Optional<bool>(), source->options().highpass_filter); |
113 } | 113 } |
OLD | NEW |