Chromium Code Reviews| Index: webrtc/p2p/base/port_unittest.cc |
| diff --git a/webrtc/p2p/base/port_unittest.cc b/webrtc/p2p/base/port_unittest.cc |
| index 88ed7f462320132a37a8dbeff392e085e983af77..b168d2910522679e9469278ea6d1029233346ead 100644 |
| --- a/webrtc/p2p/base/port_unittest.cc |
| +++ b/webrtc/p2p/base/port_unittest.cc |
| @@ -21,6 +21,7 @@ |
| #include "webrtc/p2p/base/turnport.h" |
| #include "webrtc/base/arraysize.h" |
| #include "webrtc/base/buffer.h" |
| +#include "webrtc/base/checks.h" |
| #include "webrtc/base/crc32.h" |
| #include "webrtc/base/gunit.h" |
| #include "webrtc/base/helpers.h" |
| @@ -1300,7 +1301,7 @@ TEST_F(PortTest, TestConnectionDead) { |
| ch1.CreateConnection(GetCandidate(port2)); |
| int64_t after_created = rtc::TimeMillis(); |
| Connection* conn = ch1.conn(); |
| - ASSERT(conn != nullptr); |
| + RTC_CHECK(conn != nullptr); |
|
kwiberg-webrtc
2017/01/17 09:39:25
This is a top-level test function, so you can use
nisse-webrtc
2017/01/17 12:19:21
Done.
|
| // It is not dead if it is after MIN_CONNECTION_LIFETIME but not pruned. |
| conn->UpdateState(after_created + MIN_CONNECTION_LIFETIME + 1); |
| rtc::Thread::Current()->ProcessMessages(0); |
| @@ -1318,7 +1319,7 @@ TEST_F(PortTest, TestConnectionDead) { |
| // Create a connection again and receive a ping. |
| ch1.CreateConnection(GetCandidate(port2)); |
| conn = ch1.conn(); |
| - ASSERT(conn != nullptr); |
| + RTC_CHECK(conn != nullptr); |
| int64_t before_last_receiving = rtc::TimeMillis(); |
| conn->ReceivedPing(); |
| int64_t after_last_receiving = rtc::TimeMillis(); |