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

Unified Diff: net/socket/ssl_client_socket_unittest.cc

Issue 2696403007: Add a multiplier in tracking certificate memory allocation size (Closed)
Patch Set: self Created 3 years, 10 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/socket/ssl_client_socket_impl.cc ('k') | net/socket/stream_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_client_socket_unittest.cc
diff --git a/net/socket/ssl_client_socket_unittest.cc b/net/socket/ssl_client_socket_unittest.cc
index 3b1f266032ea7d1307b8ac91dd57d57f54df8365..8073af332975fc56b5d708f8dcdba2e6248afa29 100644
--- a/net/socket/ssl_client_socket_unittest.cc
+++ b/net/socket/ssl_client_socket_unittest.cc
@@ -3603,8 +3603,8 @@ TEST_F(SSLClientSocketTest, DumpMemoryStats) {
sock_->DumpMemoryStats(&stats);
EXPECT_EQ(0u, stats.buffer_size);
EXPECT_EQ(1u, stats.cert_count);
- EXPECT_LT(0u, stats.serialized_cert_size);
- EXPECT_EQ(stats.serialized_cert_size, stats.total_size);
+ EXPECT_LT(0u, stats.cert_size);
+ EXPECT_EQ(stats.cert_size, stats.total_size);
// Read the response without writing a request, so the read will be pending.
TestCompletionCallback read_callback;
@@ -3617,7 +3617,7 @@ TEST_F(SSLClientSocketTest, DumpMemoryStats) {
sock_->DumpMemoryStats(&stats2);
EXPECT_EQ(17 * 1024u, stats2.buffer_size);
EXPECT_EQ(1u, stats2.cert_count);
- EXPECT_LT(0u, stats2.serialized_cert_size);
+ EXPECT_LT(0u, stats2.cert_size);
EXPECT_LT(17 * 1024u, stats2.total_size);
}
« no previous file with comments | « net/socket/ssl_client_socket_impl.cc ('k') | net/socket/stream_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698