| Index: content/browser/renderer_host/p2p/socket_host_udp_unittest.cc
|
| diff --git a/content/browser/renderer_host/p2p/socket_host_udp_unittest.cc b/content/browser/renderer_host/p2p/socket_host_udp_unittest.cc
|
| index d42efbe3c35922bfd2ce4331b1c58b0ab6994202..4ccd4280ebacabf604d538b121550cb114bbf203 100644
|
| --- a/content/browser/renderer_host/p2p/socket_host_udp_unittest.cc
|
| +++ b/content/browser/renderer_host/p2p/socket_host_udp_unittest.cc
|
| @@ -150,6 +150,11 @@ class FakeDatagramServerSocket : public net::DatagramServerSocket {
|
| return net::ERR_NOT_IMPLEMENTED;
|
| }
|
|
|
| + virtual int SetDiffServCodePoint(net::DiffServCodePoint dscp) OVERRIDE {
|
| + NOTIMPLEMENTED();
|
| + return net::ERR_NOT_IMPLEMENTED;
|
| + }
|
| +
|
| private:
|
| net::IPEndPoint address_;
|
| std::deque<UDPPacket>* sent_packets_;
|
| @@ -209,15 +214,15 @@ TEST_F(P2PSocketHostUdpTest, SendStunNoAuth) {
|
|
|
| std::vector<char> packet1;
|
| CreateStunRequest(&packet1);
|
| - socket_host_->Send(dest1_, packet1);
|
| + socket_host_->Send(dest1_, packet1, net::DSCP_NO_CHANGE);
|
|
|
| std::vector<char> packet2;
|
| CreateStunResponse(&packet2);
|
| - socket_host_->Send(dest1_, packet2);
|
| + socket_host_->Send(dest1_, packet2, net::DSCP_NO_CHANGE);
|
|
|
| std::vector<char> packet3;
|
| CreateStunError(&packet3);
|
| - socket_host_->Send(dest1_, packet3);
|
| + socket_host_->Send(dest1_, packet3, net::DSCP_NO_CHANGE);
|
|
|
| ASSERT_EQ(sent_packets_.size(), 3U);
|
| ASSERT_EQ(sent_packets_[0].second, packet1);
|
| @@ -234,7 +239,7 @@ TEST_F(P2PSocketHostUdpTest, SendDataNoAuth) {
|
|
|
| std::vector<char> packet;
|
| CreateRandomPacket(&packet);
|
| - socket_host_->Send(dest1_, packet);
|
| + socket_host_->Send(dest1_, packet, net::DSCP_NO_CHANGE);
|
|
|
| ASSERT_EQ(sent_packets_.size(), 0U);
|
| }
|
| @@ -256,7 +261,7 @@ TEST_F(P2PSocketHostUdpTest, SendAfterStunRequest) {
|
| .WillOnce(DoAll(DeleteArg<0>(), Return(true)));
|
| std::vector<char> packet;
|
| CreateRandomPacket(&packet);
|
| - socket_host_->Send(dest1_, packet);
|
| + socket_host_->Send(dest1_, packet, net::DSCP_NO_CHANGE);
|
|
|
| ASSERT_EQ(1U, sent_packets_.size());
|
| ASSERT_EQ(dest1_, sent_packets_[0].first);
|
| @@ -279,7 +284,7 @@ TEST_F(P2PSocketHostUdpTest, SendAfterStunResponse) {
|
| .WillOnce(DoAll(DeleteArg<0>(), Return(true)));
|
| std::vector<char> packet;
|
| CreateRandomPacket(&packet);
|
| - socket_host_->Send(dest1_, packet);
|
| + socket_host_->Send(dest1_, packet, net::DSCP_NO_CHANGE);
|
|
|
| ASSERT_EQ(1U, sent_packets_.size());
|
| ASSERT_EQ(dest1_, sent_packets_[0].first);
|
| @@ -302,7 +307,7 @@ TEST_F(P2PSocketHostUdpTest, SendAfterStunResponseDifferentHost) {
|
| EXPECT_CALL(sender_, Send(
|
| MatchMessage(static_cast<uint32>(P2PMsg_OnError::ID))))
|
| .WillOnce(DoAll(DeleteArg<0>(), Return(true)));
|
| - socket_host_->Send(dest2_, packet);
|
| + socket_host_->Send(dest2_, packet, net::DSCP_NO_CHANGE);
|
| }
|
|
|
| // Verify throttler not allowing unlimited sending of ICE messages to
|
|
|