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

Unified Diff: net/quic/quic_crypto_client_stream_test.cc

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase 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_crypto_client_stream.cc ('k') | net/quic/quic_crypto_server_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_crypto_client_stream_test.cc
diff --git a/net/quic/quic_crypto_client_stream_test.cc b/net/quic/quic_crypto_client_stream_test.cc
index 584b6fbedd692bbce1064d3fee1f7fe93922c897..efb52143e853f16dbdf3d629d9d6680f32eee78c 100644
--- a/net/quic/quic_crypto_client_stream_test.cc
+++ b/net/quic/quic_crypto_client_stream_test.cc
@@ -41,7 +41,7 @@ class QuicCryptoClientStreamTest : public ::testing::Test {
}
void CompleteCryptoHandshake() {
- EXPECT_TRUE(stream_->CryptoConnect());
+ stream_->CryptoConnect();
CryptoTestUtils::HandshakeWithFakeServer(connection_, stream_.get());
}
@@ -81,7 +81,7 @@ TEST_F(QuicCryptoClientStreamTest, MessageAfterHandshake) {
}
TEST_F(QuicCryptoClientStreamTest, BadMessageType) {
- EXPECT_TRUE(stream_->CryptoConnect());
+ stream_->CryptoConnect();
message_.set_tag(kCHLO);
ConstructHandshakeMessage();
@@ -134,9 +134,8 @@ TEST_F(QuicCryptoClientStreamTest, ExpiredServerConfig) {
connection_->AdvanceTime(
QuicTime::Delta::FromSeconds(60 * 60 * 24 * 365 * 5));
- // Check that a client hello was sent and that CryptoConnect doesn't fail
- // with an error.
- EXPECT_TRUE(stream_->CryptoConnect());
+ stream_->CryptoConnect();
+ // Check that a client hello was sent.
ASSERT_EQ(1u, connection_->packets_.size());
}
« no previous file with comments | « net/quic/quic_crypto_client_stream.cc ('k') | net/quic/quic_crypto_server_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698