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

Unified Diff: voice_engine/test/auto_test/standard/rtp_rtcp_before_streaming_test.cc

Issue 3007383002: Replace voe_auto_test (Closed)
Patch Set: reviewer comment Created 3 years, 3 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: voice_engine/test/auto_test/standard/rtp_rtcp_before_streaming_test.cc
diff --git a/voice_engine/test/auto_test/standard/rtp_rtcp_before_streaming_test.cc b/voice_engine/test/auto_test/standard/rtp_rtcp_before_streaming_test.cc
deleted file mode 100644
index dc01d90f261580fedaa3be84f0eddd11d4cd472d..0000000000000000000000000000000000000000
--- a/voice_engine/test/auto_test/standard/rtp_rtcp_before_streaming_test.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 2012 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 "voice_engine/test/auto_test/fixtures/after_initialization_fixture.h"
-
-using namespace webrtc;
-using namespace testing;
-
-class RtpRtcpBeforeStreamingTest : public AfterInitializationFixture {
- protected:
- void SetUp();
- void TearDown();
-
- int channel_;
-};
-
-void RtpRtcpBeforeStreamingTest::SetUp() {
- EXPECT_THAT(channel_ = voe_base_->CreateChannel(), Not(Lt(0)));
-}
-
-void RtpRtcpBeforeStreamingTest::TearDown() {
- EXPECT_EQ(0, voe_base_->DeleteChannel(channel_));
-}
-
-TEST_F(RtpRtcpBeforeStreamingTest,
- GetRtcpStatusReturnsTrueByDefaultAndObeysSetRtcpStatus) {
- bool on = false;
- EXPECT_EQ(0, voe_rtp_rtcp_->GetRTCPStatus(channel_, on));
- EXPECT_TRUE(on);
- EXPECT_EQ(0, voe_rtp_rtcp_->SetRTCPStatus(channel_, false));
- EXPECT_EQ(0, voe_rtp_rtcp_->GetRTCPStatus(channel_, on));
- EXPECT_FALSE(on);
- EXPECT_EQ(0, voe_rtp_rtcp_->SetRTCPStatus(channel_, true));
- EXPECT_EQ(0, voe_rtp_rtcp_->GetRTCPStatus(channel_, on));
- EXPECT_TRUE(on);
-}
-
-TEST_F(RtpRtcpBeforeStreamingTest, GetLocalSsrcObeysSetLocalSsrc) {
- EXPECT_EQ(0, voe_rtp_rtcp_->SetLocalSSRC(channel_, 1234));
- unsigned int result = 0;
- EXPECT_EQ(0, voe_rtp_rtcp_->GetLocalSSRC(channel_, result));
- EXPECT_EQ(1234u, result);
-}
« no previous file with comments | « voice_engine/test/auto_test/standard/dtmf_test.cc ('k') | voice_engine/test/auto_test/standard/rtp_rtcp_extensions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698