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

Unified Diff: net/quic/quic_client_session_test.cc

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 11 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/quic/quic_client_session.cc ('k') | net/quic/quic_connection_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_client_session_test.cc
diff --git a/net/quic/quic_client_session_test.cc b/net/quic/quic_client_session_test.cc
index 88beca768df2a265fc3feba4dc74cc27fb848bda..ee7ee0cb637a4318bdec6cbd576c2bec8ce99182 100644
--- a/net/quic/quic_client_session_test.cc
+++ b/net/quic/quic_client_session_test.cc
@@ -156,11 +156,11 @@ TEST_P(QuicClientSessionTest, CanPool) {
session_.OnProofVerifyDetailsAvailable(details);
CompleteCryptoHandshake();
-
- EXPECT_TRUE(session_.CanPool("www.example.org"));
- EXPECT_TRUE(session_.CanPool("mail.example.org"));
- EXPECT_TRUE(session_.CanPool("mail.example.com"));
- EXPECT_FALSE(session_.CanPool("mail.google.com"));
+ EXPECT_TRUE(session_.CanPool("www.example.org", PRIVACY_MODE_DISABLED));
+ EXPECT_FALSE(session_.CanPool("www.example.org", PRIVACY_MODE_ENABLED));
+ EXPECT_TRUE(session_.CanPool("mail.example.org", PRIVACY_MODE_DISABLED));
+ EXPECT_TRUE(session_.CanPool("mail.example.com", PRIVACY_MODE_DISABLED));
+ EXPECT_FALSE(session_.CanPool("mail.google.com", PRIVACY_MODE_DISABLED));
}
TEST_P(QuicClientSessionTest, ConnectionPooledWithTlsChannelId) {
@@ -178,10 +178,10 @@ TEST_P(QuicClientSessionTest, ConnectionPooledWithTlsChannelId) {
CompleteCryptoHandshake();
QuicClientSessionPeer::SetChannelIDSent(&session_, true);
- EXPECT_TRUE(session_.CanPool("www.example.org"));
- EXPECT_TRUE(session_.CanPool("mail.example.org"));
- EXPECT_FALSE(session_.CanPool("mail.example.com"));
- EXPECT_FALSE(session_.CanPool("mail.google.com"));
+ EXPECT_TRUE(session_.CanPool("www.example.org", PRIVACY_MODE_DISABLED));
+ EXPECT_TRUE(session_.CanPool("mail.example.org", PRIVACY_MODE_DISABLED));
+ EXPECT_FALSE(session_.CanPool("mail.example.com", PRIVACY_MODE_DISABLED));
+ EXPECT_FALSE(session_.CanPool("mail.google.com", PRIVACY_MODE_DISABLED));
}
TEST_P(QuicClientSessionTest, ConnectionNotPooledWithDifferentPin) {
@@ -204,7 +204,7 @@ TEST_P(QuicClientSessionTest, ConnectionNotPooledWithDifferentPin) {
CompleteCryptoHandshake();
QuicClientSessionPeer::SetChannelIDSent(&session_, true);
- EXPECT_FALSE(session_.CanPool("mail.example.org"));
+ EXPECT_FALSE(session_.CanPool("mail.example.org", PRIVACY_MODE_DISABLED));
}
TEST_P(QuicClientSessionTest, ConnectionPooledWithMatchingPin) {
@@ -226,7 +226,7 @@ TEST_P(QuicClientSessionTest, ConnectionPooledWithMatchingPin) {
CompleteCryptoHandshake();
QuicClientSessionPeer::SetChannelIDSent(&session_, true);
- EXPECT_TRUE(session_.CanPool("mail.example.org"));
+ EXPECT_TRUE(session_.CanPool("mail.example.org", PRIVACY_MODE_DISABLED));
}
} // namespace
« no previous file with comments | « net/quic/quic_client_session.cc ('k') | net/quic/quic_connection_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698