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

Unified Diff: content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc

Issue 22381012: Allow p2p UDP packages to set DSCP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: extra newline removed Created 7 years, 4 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: content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc
diff --git a/content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc b/content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc
index 340c6b57a5edfb3248acca3790774c2cd2384b1f..88c654fa7de28bfa8f8c188900eaa9577338ea5f 100644
--- a/content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc
+++ b/content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc
@@ -94,15 +94,15 @@ TEST_F(P2PSocketHostTcpTest, SendStunNoAuth) {
std::vector<char> packet1;
CreateStunRequest(&packet1);
- socket_host_->Send(dest_, packet1);
+ socket_host_->Send(dest_, packet1, net::DSCP_NO_CHANGE);
std::vector<char> packet2;
CreateStunResponse(&packet2);
- socket_host_->Send(dest_, packet2);
+ socket_host_->Send(dest_, packet2, net::DSCP_NO_CHANGE);
std::vector<char> packet3;
CreateStunError(&packet3);
- socket_host_->Send(dest_, packet3);
+ socket_host_->Send(dest_, packet3, net::DSCP_NO_CHANGE);
std::string expected_data;
expected_data.append(IntToSize(packet1.size()));
@@ -125,15 +125,15 @@ TEST_F(P2PSocketHostTcpTest, ReceiveStun) {
std::vector<char> packet1;
CreateStunRequest(&packet1);
- socket_host_->Send(dest_, packet1);
+ socket_host_->Send(dest_, packet1, net::DSCP_NO_CHANGE);
std::vector<char> packet2;
CreateStunResponse(&packet2);
- socket_host_->Send(dest_, packet2);
+ socket_host_->Send(dest_, packet2, net::DSCP_NO_CHANGE);
std::vector<char> packet3;
CreateStunError(&packet3);
- socket_host_->Send(dest_, packet3);
+ socket_host_->Send(dest_, packet3, net::DSCP_NO_CHANGE);
std::string received_data;
received_data.append(IntToSize(packet1.size()));
@@ -171,7 +171,7 @@ TEST_F(P2PSocketHostTcpTest, SendDataNoAuth) {
std::vector<char> packet;
CreateRandomPacket(&packet);
- socket_host_->Send(dest_, packet);
+ socket_host_->Send(dest_, packet, net::DSCP_NO_CHANGE);
EXPECT_EQ(0U, sent_data_.size());
}
@@ -197,7 +197,7 @@ TEST_F(P2PSocketHostTcpTest, SendAfterStunRequest) {
// Now we should be able to send any data to |dest_|.
std::vector<char> packet;
CreateRandomPacket(&packet);
- socket_host_->Send(dest_, packet);
+ socket_host_->Send(dest_, packet, net::DSCP_NO_CHANGE);
std::string expected_data;
expected_data.append(IntToSize(packet.size()));
@@ -219,11 +219,11 @@ TEST_F(P2PSocketHostTcpTest, AsyncWrites) {
std::vector<char> packet1;
CreateStunRequest(&packet1);
- socket_host_->Send(dest_, packet1);
+ socket_host_->Send(dest_, packet1, net::DSCP_NO_CHANGE);
std::vector<char> packet2;
CreateStunResponse(&packet2);
- socket_host_->Send(dest_, packet2);
+ socket_host_->Send(dest_, packet2, net::DSCP_NO_CHANGE);
message_loop.RunUntilIdle();
@@ -246,15 +246,15 @@ TEST_F(P2PSocketHostStunTcpTest, SendStunNoAuth) {
std::vector<char> packet1;
CreateStunRequest(&packet1);
- socket_host_->Send(dest_, packet1);
+ socket_host_->Send(dest_, packet1, net::DSCP_NO_CHANGE);
std::vector<char> packet2;
CreateStunResponse(&packet2);
- socket_host_->Send(dest_, packet2);
+ socket_host_->Send(dest_, packet2, net::DSCP_NO_CHANGE);
std::vector<char> packet3;
CreateStunError(&packet3);
- socket_host_->Send(dest_, packet3);
+ socket_host_->Send(dest_, packet3, net::DSCP_NO_CHANGE);
std::string expected_data;
expected_data.append(packet1.begin(), packet1.end());
@@ -274,15 +274,15 @@ TEST_F(P2PSocketHostStunTcpTest, ReceiveStun) {
std::vector<char> packet1;
CreateStunRequest(&packet1);
- socket_host_->Send(dest_, packet1);
+ socket_host_->Send(dest_, packet1, net::DSCP_NO_CHANGE);
std::vector<char> packet2;
CreateStunResponse(&packet2);
- socket_host_->Send(dest_, packet2);
+ socket_host_->Send(dest_, packet2, net::DSCP_NO_CHANGE);
std::vector<char> packet3;
CreateStunError(&packet3);
- socket_host_->Send(dest_, packet3);
+ socket_host_->Send(dest_, packet3, net::DSCP_NO_CHANGE);
std::string received_data;
received_data.append(packet1.begin(), packet1.end());
@@ -317,7 +317,7 @@ TEST_F(P2PSocketHostStunTcpTest, SendDataNoAuth) {
std::vector<char> packet;
CreateRandomPacket(&packet);
- socket_host_->Send(dest_, packet);
+ socket_host_->Send(dest_, packet, net::DSCP_NO_CHANGE);
EXPECT_EQ(0U, sent_data_.size());
}
@@ -335,11 +335,11 @@ TEST_F(P2PSocketHostStunTcpTest, AsyncWrites) {
std::vector<char> packet1;
CreateStunRequest(&packet1);
- socket_host_->Send(dest_, packet1);
+ socket_host_->Send(dest_, packet1, net::DSCP_NO_CHANGE);
std::vector<char> packet2;
CreateStunResponse(&packet2);
- socket_host_->Send(dest_, packet2);
+ socket_host_->Send(dest_, packet2, net::DSCP_NO_CHANGE);
message_loop.RunUntilIdle();

Powered by Google App Engine
This is Rietveld 408576698