| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/spdy/spdy_credential_builder.h" | 5 #include "net/spdy/spdy_credential_builder.h" |
| 6 | 6 |
| 7 #include "base/threading/sequenced_worker_pool.h" | 7 #include "base/threading/sequenced_worker_pool.h" |
| 8 #include "crypto/ec_private_key.h" |
| 8 #include "crypto/ec_signature_creator.h" | 9 #include "crypto/ec_signature_creator.h" |
| 9 #include "crypto/ec_private_key.h" | |
| 10 #include "net/base/asn1_util.h" | 10 #include "net/base/asn1_util.h" |
| 11 #include "net/base/default_server_bound_cert_store.h" | |
| 12 #include "net/base/server_bound_cert_service.h" | |
| 13 #include "net/spdy/spdy_test_util_spdy3.h" | 11 #include "net/spdy/spdy_test_util_spdy3.h" |
| 12 #include "net/ssl/default_server_bound_cert_store.h" |
| 13 #include "net/ssl/server_bound_cert_service.h" |
| 14 #include "testing/platform_test.h" | 14 #include "testing/platform_test.h" |
| 15 | 15 |
| 16 using namespace net::test_spdy3; | 16 using namespace net::test_spdy3; |
| 17 | 17 |
| 18 namespace net { | 18 namespace net { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 const static size_t kSlot = 2; | 22 const static size_t kSlot = 2; |
| 23 const static char kSecretPrefix[] = | 23 const static char kSecretPrefix[] = |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 crypto::ECSignatureCreator::Create(private_key.get())); | 173 crypto::ECSignatureCreator::Create(private_key.get())); |
| 174 std::string secret = GetCredentialSecret(); | 174 std::string secret = GetCredentialSecret(); |
| 175 creator->Sign(reinterpret_cast<const unsigned char *>(secret.data()), | 175 creator->Sign(reinterpret_cast<const unsigned char *>(secret.data()), |
| 176 secret.length(), &proof_data); | 176 secret.length(), &proof_data); |
| 177 | 177 |
| 178 std::string proof(proof_data.begin(), proof_data.end()); | 178 std::string proof(proof_data.begin(), proof_data.end()); |
| 179 EXPECT_EQ(proof, credential_.proof); | 179 EXPECT_EQ(proof, credential_.proof); |
| 180 } | 180 } |
| 181 | 181 |
| 182 } // namespace net | 182 } // namespace net |
| OLD | NEW |