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

Side by Side Diff: webrtc/audio/audio_send_stream_unittest.cc

Issue 1397123003: Add AudioSendStream to Call. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: comments+merge Created 5 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
(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_LT(0u, config.ToString().size());
pbos-webrtc 2015/10/15 15:32:12 pref GT(size, 0u)
the sun 2015/10/16 08:47:05 Done.
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698