| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |