Index: webrtc/p2p/base/p2ptransportchannel_unittest.cc |
diff --git a/webrtc/p2p/base/p2ptransportchannel_unittest.cc b/webrtc/p2p/base/p2ptransportchannel_unittest.cc |
index 1f262dbcc77ac1d46fbe88d3a06ecc6e7ce54db1..e5fa8a1dde79d7c5d7949fd50c574cd5c792ff83 100644 |
--- a/webrtc/p2p/base/p2ptransportchannel_unittest.cc |
+++ b/webrtc/p2p/base/p2ptransportchannel_unittest.cc |
@@ -19,6 +19,7 @@ |
#include "webrtc/p2p/base/teststunserver.h" |
#include "webrtc/p2p/base/testturnserver.h" |
#include "webrtc/p2p/client/basicportallocator.h" |
+#include "webrtc/base/checks.h" |
#include "webrtc/base/dscp.h" |
#include "webrtc/base/fakeclock.h" |
#include "webrtc/base/fakenetwork.h" |
@@ -2056,7 +2057,7 @@ TEST_F(P2PTransportChannelTest, SignalReadyToSendWithPresumedWritable) { |
class P2PTransportChannelSameNatTest : public P2PTransportChannelTestBase { |
protected: |
void ConfigureEndpoints(Config nat_type, Config config1, Config config2) { |
- ASSERT(nat_type >= NAT_FULL_CONE && nat_type <= NAT_SYMMETRIC); |
+ RTC_CHECK(nat_type >= NAT_FULL_CONE && nat_type <= NAT_SYMMETRIC); |
rtc::NATSocketServer::Translator* outer_nat = |
nat()->AddTranslator(kPublicAddrs[0], kNatAddrs[0], |
static_cast<rtc::NATType>(nat_type - NAT_FULL_CONE)); |
@@ -2066,7 +2067,7 @@ class P2PTransportChannelSameNatTest : public P2PTransportChannelTestBase { |
} |
void ConfigureEndpoint(rtc::NATSocketServer::Translator* nat, |
int endpoint, Config config) { |
- ASSERT(config <= NAT_SYMMETRIC); |
+ RTC_CHECK(config <= NAT_SYMMETRIC); |
if (config == OPEN) { |
AddAddress(endpoint, kPrivateAddrs[endpoint]); |
nat->AddClient(kPrivateAddrs[endpoint]); |