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

Side by Side Diff: net/quic/crypto/proof_test.cc

Issue 1437023002: Landing Recent QUIC changes until 2015-11-09 20:32 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/crypto/crypto_utils.cc ('k') | net/quic/crypto/proof_verifier.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 "base/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "net/base/ip_endpoint.h" 6 #include "net/base/ip_endpoint.h"
7 #include "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 #include "net/base/test_completion_callback.h" 8 #include "net/base/test_completion_callback.h"
9 #include "net/base/test_data_directory.h" 9 #include "net/base/test_data_directory.h"
10 #include "net/cert/cert_status_flags.h" 10 #include "net/cert/cert_status_flags.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 scoped_ptr<ProofVerifyDetails> details; 65 scoped_ptr<ProofVerifyDetails> details;
66 TestCompletionCallback comp_callback; 66 TestCompletionCallback comp_callback;
67 bool ok; 67 bool ok;
68 string error_details; 68 string error_details;
69 scoped_ptr<ProofVerifyContext> verify_context( 69 scoped_ptr<ProofVerifyContext> verify_context(
70 CryptoTestUtils::ProofVerifyContextForTesting()); 70 CryptoTestUtils::ProofVerifyContextForTesting());
71 TestProofVerifierCallback* callback = 71 TestProofVerifierCallback* callback =
72 new TestProofVerifierCallback(&comp_callback, &ok, &error_details); 72 new TestProofVerifierCallback(&comp_callback, &ok, &error_details);
73 73
74 QuicAsyncStatus status = verifier->VerifyProof( 74 QuicAsyncStatus status = verifier->VerifyProof(
75 hostname, server_config, certs, proof, verify_context.get(), 75 hostname, server_config, certs, "", proof, verify_context.get(),
76 &error_details, &details, callback); 76 &error_details, &details, callback);
77 77
78 switch (status) { 78 switch (status) {
79 case QUIC_FAILURE: 79 case QUIC_FAILURE:
80 delete callback; 80 delete callback;
81 ASSERT_FALSE(expected_ok); 81 ASSERT_FALSE(expected_ok);
82 ASSERT_NE("", error_details); 82 ASSERT_NE("", error_details);
83 return; 83 return;
84 case QUIC_SUCCESS: 84 case QUIC_SUCCESS:
85 delete callback; 85 delete callback;
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 wrong_certs.push_back(certs[i]); 367 wrong_certs.push_back(certs[i]);
368 } 368 }
369 RunVerification( 369 RunVerification(
370 verifier.get(), hostname, server_config, wrong_certs, signature, 370 verifier.get(), hostname, server_config, wrong_certs, signature,
371 false); 371 false);
372 } 372 }
373 } 373 }
374 374
375 } // namespace test 375 } // namespace test
376 } // namespace net 376 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/crypto/crypto_utils.cc ('k') | net/quic/crypto/proof_verifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698