Index: webrtc/p2p/base/p2ptransportchannel_unittest.cc |
diff --git a/webrtc/p2p/base/p2ptransportchannel_unittest.cc b/webrtc/p2p/base/p2ptransportchannel_unittest.cc |
index 3ba2558809e91b705f46e7c17212089663e194d7..62fddb2b581bbe57ae56380c2afa9f1b1bf36af3 100644 |
--- a/webrtc/p2p/base/p2ptransportchannel_unittest.cc |
+++ b/webrtc/p2p/base/p2ptransportchannel_unittest.cc |
@@ -2179,7 +2179,8 @@ TEST_F(P2PTransportChannelTest, SignalReadyToSendWithPresumedWritable) { |
class P2PTransportChannelSameNatTest : public P2PTransportChannelTestBase { |
protected: |
void ConfigureEndpoints(Config nat_type, Config config1, Config config2) { |
- RTC_CHECK(nat_type >= NAT_FULL_CONE && nat_type <= NAT_SYMMETRIC); |
+ RTC_CHECK_GE(nat_type, NAT_FULL_CONE); |
+ RTC_CHECK_LE(nat_type, NAT_SYMMETRIC); |
rtc::NATSocketServer::Translator* outer_nat = |
nat()->AddTranslator(kPublicAddrs[0], kNatAddrs[0], |
static_cast<rtc::NATType>(nat_type - NAT_FULL_CONE)); |