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

Unified Diff: net/http/http_network_transaction_unittest.cc

Issue 7819009: For the SSL cert status, convert anonymous enum that gives bit values into a typedefed uint32. Th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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
Index: net/http/http_network_transaction_unittest.cc
===================================================================
--- net/http/http_network_transaction_unittest.cc (revision 98481)
+++ net/http/http_network_transaction_unittest.cc (working copy)
@@ -4326,7 +4326,7 @@
// Setup state in response_
HttpResponseInfo* response = &trans->response_;
response->auth_challenge = new AuthChallengeInfo();
- response->ssl_info.cert_status = -15;
+ response->ssl_info.cert_status = static_cast<CertStatus>(-15);
response->response_time = base::Time::Now();
response->was_cached = true; // (Wouldn't ever actually be true...)
@@ -4350,7 +4350,7 @@
EXPECT_TRUE(response->auth_challenge.get() == NULL);
EXPECT_TRUE(response->headers.get() == NULL);
EXPECT_FALSE(response->was_cached);
- EXPECT_EQ(0, response->ssl_info.cert_status);
+ EXPECT_EQ(CERT_STATUS_NO_ERROR, response->ssl_info.cert_status);
EXPECT_FALSE(response->vary_data.is_valid());
}

Powered by Google App Engine
This is Rietveld 408576698