| Index: talk/app/webrtc/peerconnectioninterface_unittest.cc
|
| diff --git a/talk/app/webrtc/peerconnectioninterface_unittest.cc b/talk/app/webrtc/peerconnectioninterface_unittest.cc
|
| index 8b7c9cf382f904e47fa3ee5471c5c339bf6e4537..d582ad5cb0c42d7e14f9aaa3c66f919138fce1dd 100644
|
| --- a/talk/app/webrtc/peerconnectioninterface_unittest.cc
|
| +++ b/talk/app/webrtc/peerconnectioninterface_unittest.cc
|
| @@ -84,6 +84,7 @@ using webrtc::MockStatsObserver;
|
| using webrtc::PeerConnectionInterface;
|
| using webrtc::PeerConnectionObserver;
|
| using webrtc::PortAllocatorFactoryInterface;
|
| +using webrtc::PortAllocatorFactoryInterface;
|
| using webrtc::SdpParseError;
|
| using webrtc::SessionDescriptionInterface;
|
| using webrtc::VideoSourceInterface;
|
| @@ -1154,6 +1155,23 @@ TEST_F(PeerConnectionInterfaceTest, ReceiveUpdatedAudioOfferWithBadCodecs) {
|
| CreateAnswerAsLocalDescription();
|
| }
|
|
|
| +// Test that we can use SetConfiguration to change the ICE servers of the
|
| +// PortAllocator.
|
| +TEST_F(PeerConnectionInterfaceTest, SetConfigurationChangesIceServers) {
|
| + CreatePeerConnection();
|
| +
|
| + PeerConnectionInterface::RTCConfiguration config;
|
| + PeerConnectionInterface::IceServer server;
|
| + server.uri = "stun:test_hostname";
|
| + config.servers.push_back(server);
|
| + EXPECT_TRUE(pc_->SetConfiguration(config));
|
| +
|
| + cricket::FakePortAllocator* allocator =
|
| + port_allocator_factory_->last_created_allocator();
|
| + EXPECT_EQ(1u, allocator->stun_servers().size());
|
| + EXPECT_EQ("test_hostname", allocator->stun_servers().begin()->hostname());
|
| +}
|
| +
|
| // Test that PeerConnection::Close changes the states to closed and all remote
|
| // tracks change state to ended.
|
| TEST_F(PeerConnectionInterfaceTest, CloseAndTestStreamsAndStates) {
|
|
|