OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * |
| 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 |
| 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ |
| 10 |
| 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 |
| 13 #include "webrtc/audio/audio_send_stream.h" |
| 14 |
| 15 namespace webrtc { |
| 16 |
| 17 TEST(AudioSendStreamTest, ConfigToString) { |
| 18 const int kAbsSendTimeId = 3; |
| 19 AudioSendStream::Config config(nullptr); |
| 20 config.rtp.ssrc = 1234; |
| 21 config.rtp.extensions.push_back( |
| 22 RtpExtension(RtpExtension::kAbsSendTime, kAbsSendTimeId)); |
| 23 config.voe_channel_id = 1; |
| 24 config.cng_payload_type = 42; |
| 25 config.red_payload_type = 17; |
| 26 EXPECT_GT(config.ToString().size(), 0u); |
| 27 } |
| 28 |
| 29 TEST(AudioSendStreamTest, ConstructDestruct) { |
| 30 AudioSendStream::Config config(nullptr); |
| 31 config.voe_channel_id = 1; |
| 32 internal::AudioSendStream send_stream(config); |
| 33 } |
| 34 } // namespace webrtc |
OLD | NEW |