| Index: webrtc/p2p/base/pseudotcp_unittest.cc
|
| diff --git a/webrtc/p2p/base/pseudotcp_unittest.cc b/webrtc/p2p/base/pseudotcp_unittest.cc
|
| index c9ccbca1d9515cdfc8ba8afe847400a1b86cca58..a635bcef16957374754238fb34b128ebe9a4dc85 100644
|
| --- a/webrtc/p2p/base/pseudotcp_unittest.cc
|
| +++ b/webrtc/p2p/base/pseudotcp_unittest.cc
|
| @@ -208,7 +208,8 @@ class PseudoTcpTestBase : public testing::Test,
|
| class PseudoTcpTest : public PseudoTcpTestBase {
|
| public:
|
| void TestTransfer(int size) {
|
| - uint32_t start, elapsed;
|
| + uint32_t start;
|
| + int32_t elapsed;
|
| size_t received;
|
| // Create some dummy data to send.
|
| send_stream_.ReserveSize(size);
|
| @@ -220,13 +221,13 @@ class PseudoTcpTest : public PseudoTcpTestBase {
|
| // Prepare the receive stream.
|
| recv_stream_.ReserveSize(size);
|
| // Connect and wait until connected.
|
| - start = rtc::Time();
|
| + start = rtc::Time32();
|
| EXPECT_EQ(0, Connect());
|
| EXPECT_TRUE_WAIT(have_connected_, kConnectTimeoutMs);
|
| // Sending will start from OnTcpWriteable and complete when all data has
|
| // been received.
|
| EXPECT_TRUE_WAIT(have_disconnected_, kTransferTimeoutMs);
|
| - elapsed = rtc::TimeSince(start);
|
| + elapsed = rtc::Time32() - start;
|
| recv_stream_.GetSize(&received);
|
| // Ensure we closed down OK and we got the right data.
|
| // TODO: Ensure the errors are cleared properly.
|
| @@ -339,7 +340,7 @@ class PseudoTcpTestPingPong : public PseudoTcpTestBase {
|
| // Prepare the receive stream.
|
| recv_stream_.ReserveSize(size);
|
| // Connect and wait until connected.
|
| - start = rtc::Time();
|
| + start = rtc::Time32();
|
| EXPECT_EQ(0, Connect());
|
| EXPECT_TRUE_WAIT(have_connected_, kConnectTimeoutMs);
|
| // Sending will start from OnTcpWriteable and stop when the required
|
|
|