Index: webrtc/p2p/base/turnport_unittest.cc |
diff --git a/webrtc/p2p/base/turnport_unittest.cc b/webrtc/p2p/base/turnport_unittest.cc |
index a90ea032b7498758269e724e58c358ddb67dfbc8..724485ddde05b70fac6a1fc06331b74c4d058f7c 100644 |
--- a/webrtc/p2p/base/turnport_unittest.cc |
+++ b/webrtc/p2p/base/turnport_unittest.cc |
@@ -364,7 +364,7 @@ class TurnPortTest : public testing::Test, |
conn1->Ping(0); |
WAIT(!turn_unknown_address_, kTimeout); |
EXPECT_FALSE(turn_unknown_address_); |
- EXPECT_EQ(Connection::STATE_READ_INIT, conn1->read_state()); |
+ EXPECT_FALSE(conn1->receiving()); |
EXPECT_EQ(Connection::STATE_WRITE_INIT, conn1->write_state()); |
// Send ping from TURN to UDP. |
@@ -375,14 +375,14 @@ class TurnPortTest : public testing::Test, |
conn2->Ping(0); |
EXPECT_EQ_WAIT(Connection::STATE_WRITABLE, conn2->write_state(), kTimeout); |
- EXPECT_EQ(Connection::STATE_READABLE, conn1->read_state()); |
- EXPECT_EQ(Connection::STATE_READ_INIT, conn2->read_state()); |
+ EXPECT_TRUE(conn1->receiving()); |
+ EXPECT_TRUE(conn2->receiving()); |
EXPECT_EQ(Connection::STATE_WRITE_INIT, conn1->write_state()); |
// Send another ping from UDP to TURN. |
conn1->Ping(0); |
EXPECT_EQ_WAIT(Connection::STATE_WRITABLE, conn1->write_state(), kTimeout); |
- EXPECT_EQ(Connection::STATE_READABLE, conn2->read_state()); |
+ EXPECT_TRUE(conn2->receiving()); |
} |
void TestTurnSendData() { |