Removed NetworkTest.CanSwitchToExternalTransport since it tests an unsupported case and we should not maintain such a test.
BUG=3289 R=pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/16439004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6043 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -1,43 +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 "webrtc/voice_engine/include/mock/mock_voe_connection_observer.h"
|
|
||||||
#include "webrtc/voice_engine/include/mock/mock_voe_observer.h"
|
|
||||||
#include "webrtc/voice_engine/test/auto_test/fakes/fake_external_transport.h"
|
|
||||||
#include "webrtc/voice_engine/test/auto_test/fixtures/after_streaming_fixture.h"
|
|
||||||
#include "webrtc/voice_engine/test/auto_test/voe_standard_test.h"
|
|
||||||
#include "webrtc/voice_engine/test/auto_test/voe_test_interface.h"
|
|
||||||
|
|
||||||
class NetworkTest : public AfterStreamingFixture {
|
|
||||||
};
|
|
||||||
|
|
||||||
using ::testing::Between;
|
|
||||||
|
|
||||||
TEST_F(NetworkTest, CanSwitchToExternalTransport) {
|
|
||||||
EXPECT_EQ(0, voe_base_->StopReceive(channel_));
|
|
||||||
EXPECT_EQ(0, voe_base_->DeleteChannel(channel_));
|
|
||||||
channel_ = voe_base_->CreateChannel();
|
|
||||||
|
|
||||||
FakeExternalTransport external_transport(voe_network_);
|
|
||||||
EXPECT_EQ(0, voe_network_->RegisterExternalTransport(
|
|
||||||
channel_, external_transport));
|
|
||||||
|
|
||||||
EXPECT_EQ(0, voe_base_->StartReceive(channel_));
|
|
||||||
EXPECT_EQ(0, voe_base_->StartSend(channel_));
|
|
||||||
EXPECT_EQ(0, voe_base_->StartPlayout(channel_));
|
|
||||||
|
|
||||||
Sleep(1000);
|
|
||||||
|
|
||||||
EXPECT_EQ(0, voe_base_->StopSend(channel_));
|
|
||||||
EXPECT_EQ(0, voe_base_->StopPlayout(channel_));
|
|
||||||
EXPECT_EQ(0, voe_base_->StopReceive(channel_));
|
|
||||||
|
|
||||||
EXPECT_EQ(0, voe_network_->DeRegisterExternalTransport(channel_));
|
|
||||||
}
|
|
@@ -173,7 +173,6 @@
|
|||||||
'test/auto_test/standard/hardware_test.cc',
|
'test/auto_test/standard/hardware_test.cc',
|
||||||
'test/auto_test/standard/mixing_test.cc',
|
'test/auto_test/standard/mixing_test.cc',
|
||||||
'test/auto_test/standard/neteq_stats_test.cc',
|
'test/auto_test/standard/neteq_stats_test.cc',
|
||||||
'test/auto_test/standard/network_test.cc',
|
|
||||||
'test/auto_test/standard/rtp_rtcp_before_streaming_test.cc',
|
'test/auto_test/standard/rtp_rtcp_before_streaming_test.cc',
|
||||||
'test/auto_test/standard/rtp_rtcp_extensions.cc',
|
'test/auto_test/standard/rtp_rtcp_extensions.cc',
|
||||||
'test/auto_test/standard/rtp_rtcp_test.cc',
|
'test/auto_test/standard/rtp_rtcp_test.cc',
|
||||||
|
Reference in New Issue
Block a user