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

Side by Side Diff: net/quic/core/crypto/crypto_server_test.cc

Issue 2463093003: Landing Recent QUIC changes until Sat Oct 29 14:59:35. (Closed)
Patch Set: add change to quiartc_session_test.cc Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « net/quic/core/crypto/crypto_protocol.h ('k') | net/quic/core/crypto/proof_source.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <algorithm> 5 #include <algorithm>
6 #include <cstdint> 6 #include <cstdint>
7 #include <memory> 7 #include <memory>
8 #include <ostream> 8 #include <ostream>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 error_substr_(error_substr), 284 error_substr_(error_substr),
285 called_(called), 285 called_(called),
286 out_(out) { 286 out_(out) {
287 *called_ = false; 287 *called_ = false;
288 } 288 }
289 289
290 void Run( 290 void Run(
291 QuicErrorCode error, 291 QuicErrorCode error,
292 const string& error_details, 292 const string& error_details,
293 std::unique_ptr<CryptoHandshakeMessage> message, 293 std::unique_ptr<CryptoHandshakeMessage> message,
294 std::unique_ptr<DiversificationNonce> diversification_nonce) override { 294 std::unique_ptr<DiversificationNonce> diversification_nonce,
295 std::unique_ptr<ProofSource::Details> proof_source_details) override {
295 if (should_succeed_) { 296 if (should_succeed_) {
296 ASSERT_EQ(error, QUIC_NO_ERROR) << "Message failed with error " 297 ASSERT_EQ(error, QUIC_NO_ERROR) << "Message failed with error "
297 << error_details << ": " 298 << error_details << ": "
298 << result_->client_hello.DebugString(); 299 << result_->client_hello.DebugString();
299 } else { 300 } else {
300 ASSERT_NE(error, QUIC_NO_ERROR) << "Message didn't fail: " 301 ASSERT_NE(error, QUIC_NO_ERROR) << "Message didn't fail: "
301 << result_->client_hello.DebugString(); 302 << result_->client_hello.DebugString();
302 303
303 EXPECT_TRUE(error_details.find(error_substr_) != string::npos) 304 EXPECT_TRUE(error_details.find(error_substr_) != string::npos)
304 << error_substr_ << " not in " << error_details; 305 << error_substr_ << " not in " << error_details;
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1280 EXPECT_EQ(0, strike_register_client_->PendingVerifications()); 1281 EXPECT_EQ(0, strike_register_client_->PendingVerifications());
1281 } else { 1282 } else {
1282 // version 33. 1283 // version 33.
1283 ASSERT_EQ(kSHLO, out_.tag()); 1284 ASSERT_EQ(kSHLO, out_.tag());
1284 CheckServerHello(out_); 1285 CheckServerHello(out_);
1285 } 1286 }
1286 } 1287 }
1287 1288
1288 } // namespace test 1289 } // namespace test
1289 } // namespace net 1290 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/crypto/crypto_protocol.h ('k') | net/quic/core/crypto/proof_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698