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

Side by Side Diff: net/spdy/spdy_credential_builder_unittest.cc

Issue 12680003: net: split net/ssl out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_credential_builder.cc ('k') | net/spdy/spdy_credential_state.cc » ('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) 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
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
OLDNEW
« no previous file with comments | « net/spdy/spdy_credential_builder.cc ('k') | net/spdy/spdy_credential_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698