Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(545)

Unified Diff: webrtc/pc/test/fakertccertificategenerator.h

Issue 2988153003: Replace CHECK(x && y) with two separate CHECK() calls (Closed)
Patch Set: fix mistakes Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/pc/test/fakedatachannelprovider.h ('k') | webrtc/rtc_base/macutils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/test/fakertccertificategenerator.h
diff --git a/webrtc/pc/test/fakertccertificategenerator.h b/webrtc/pc/test/fakertccertificategenerator.h
index 39b910744841b0cdb6699005b486652b64d1bfab..7b4737831301794ade4f8493029adb1b3fe41c1f 100644
--- a/webrtc/pc/test/fakertccertificategenerator.h
+++ b/webrtc/pc/test/fakertccertificategenerator.h
@@ -151,12 +151,12 @@ class FakeRTCCertificateGenerator
if (should_fail_) {
msg_id = MSG_FAILURE;
} else if (key_params.type() == rtc::KT_RSA) {
- RTC_DCHECK(key_params.rsa_params().mod_size == 1024 &&
- key_params.rsa_params().pub_exp == 0x10001);
+ RTC_DCHECK_EQ(key_params.rsa_params().mod_size, 1024);
+ RTC_DCHECK_EQ(key_params.rsa_params().pub_exp, 0x10001);
msg_id = MSG_SUCCESS_RSA;
} else {
- RTC_DCHECK(key_params.type() == rtc::KT_ECDSA &&
- key_params.ec_curve() == rtc::EC_NIST_P256);
+ RTC_DCHECK_EQ(key_params.type(), rtc::KT_ECDSA);
+ RTC_DCHECK_EQ(key_params.ec_curve(), rtc::EC_NIST_P256);
msg_id = MSG_SUCCESS_ECDSA;
}
rtc::Thread::Current()->Post(RTC_FROM_HERE, this, msg_id, msg);
« no previous file with comments | « webrtc/pc/test/fakedatachannelprovider.h ('k') | webrtc/rtc_base/macutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698