Index: webrtc/api/peerconnectioninterface_unittest.cc |
diff --git a/webrtc/api/peerconnectioninterface_unittest.cc b/webrtc/api/peerconnectioninterface_unittest.cc |
index 0b24fcb7cfc4d119af78dacd4258d84f6188aa76..85b3649a2df521172ce4769e7d8abcbfae8aa8d3 100644 |
--- a/webrtc/api/peerconnectioninterface_unittest.cc |
+++ b/webrtc/api/peerconnectioninterface_unittest.cc |
@@ -1827,12 +1827,12 @@ TEST_F(PeerConnectionInterfaceTest, |
channel = pc_->CreateDataChannel("x", &config); |
EXPECT_TRUE(channel == NULL); |
- config.id = cricket::kMaxSctpSid; |
+ config.id = cricket::kMaxSctpStreams - 1; |
channel = pc_->CreateDataChannel("max", &config); |
EXPECT_TRUE(channel != NULL); |
EXPECT_EQ(config.id, channel->id()); |
- config.id = cricket::kMaxSctpSid + 1; |
+ config.id = cricket::kMaxSctpStreams; |
channel = pc_->CreateDataChannel("x", &config); |
EXPECT_TRUE(channel == NULL); |
} |