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

Unified 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: more tests 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/audio/audio_send_stream_unittest.cc
diff --git a/webrtc/audio/audio_send_stream_unittest.cc b/webrtc/audio/audio_send_stream_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..61c8bbbd379453d4738dbbdd13d2275d12f1b89e
--- /dev/null
+++ b/webrtc/audio/audio_send_stream_unittest.cc
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+#include "testing/gtest/include/gtest/gtest.h"
+
+#include "webrtc/audio/audio_send_stream.h"
+
+namespace webrtc {
+
+TEST(AudioSendStreamTest, ConfigToString) {
+ const int kAbsSendTimeId = 3;
+ AudioSendStream::Config config(nullptr);
+ config.rtp.ssrc = 1234;
+ config.rtp.extensions.push_back(
+ RtpExtension(RtpExtension::kAbsSendTime, kAbsSendTimeId));
+ config.voe_channel_id = 1;
+ config.cng_payload_type = 42;
+ config.red_payload_type = 17;
+ EXPECT_LT(0u, config.ToString().size());
+}
+
+TEST(AudioSendStreamTest, ConstructDestruct) {
+ AudioSendStream::Config config(nullptr);
+ config.voe_channel_id = 1;
+ internal::AudioSendStream send_stream(config);
+}
+} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698