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

Unified Diff: net/base/ssl_client_auth_cache_unittest.cc

Issue 179028: Revert "Fix a ton of compiler warnings." (Closed)
Patch Set: Created 11 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 | « net/base/host_cache_unittest.cc ('k') | net/ftp/ftp_auth_cache_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/ssl_client_auth_cache_unittest.cc
diff --git a/net/base/ssl_client_auth_cache_unittest.cc b/net/base/ssl_client_auth_cache_unittest.cc
index c0697fcaa26970d7fce7574a34af8bd2ece4ec78..33eb25f139975b9e643d30d5eeb5183036c895c6 100644
--- a/net/base/ssl_client_auth_cache_unittest.cc
+++ b/net/base/ssl_client_auth_cache_unittest.cc
@@ -28,7 +28,7 @@ TEST(SSLClientAuthCacheTest, LookupAddRemove) {
new X509Certificate("foo3", "CA", start_date, expiration_date));
// Lookup non-existent client certificate.
- EXPECT_TRUE(NULL == cache.Lookup(server1));
+ EXPECT_EQ(NULL, cache.Lookup(server1));
// Add client certificate for server1.
cache.Add(server1, cert1.get());
@@ -46,12 +46,12 @@ TEST(SSLClientAuthCacheTest, LookupAddRemove) {
// Remove client certificate of server1.
cache.Remove(server1);
- EXPECT_TRUE(NULL == cache.Lookup(server1));
+ EXPECT_EQ(NULL, cache.Lookup(server1));
EXPECT_EQ(cert2.get(), cache.Lookup(server2));
// Remove non-existent client certificate.
cache.Remove(server1);
- EXPECT_TRUE(NULL == cache.Lookup(server1));
+ EXPECT_EQ(NULL, cache.Lookup(server1));
EXPECT_EQ(cert2.get(), cache.Lookup(server2));
}
« no previous file with comments | « net/base/host_cache_unittest.cc ('k') | net/ftp/ftp_auth_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698