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

Side by Side Diff: chrome/common/net/x509_certificate_model_unittest.cc

Issue 370383002: x509_certificate_model_openssl: implement ProcessRawBitsSignatureWrap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « chrome/common/net/x509_certificate_model_openssl.cc ('k') | no next file » | 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 "chrome/common/net/x509_certificate_model.h" 5 #include "chrome/common/net/x509_certificate_model.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "net/base/test_data_directory.h" 9 #include "net/base/test_data_directory.h"
10 #include "net/test/cert_test_util.h" 10 #include "net/test/cert_test_util.h"
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 EXPECT_EQ( 402 EXPECT_EQ(
403 "04 D1 35 14 53 74 2F E1 E4 9B 41 9E 42 9D 10 6B\n" 403 "04 D1 35 14 53 74 2F E1 E4 9B 41 9E 42 9D 10 6B\n"
404 "0B F4 16 8F BC A7 C7 A4 39 09 73 34 CB 87 DF 2F\n" 404 "0B F4 16 8F BC A7 C7 A4 39 09 73 34 CB 87 DF 2F\n"
405 "7E 4A 5F B1 B5 E4 DC 49 41 4E A8 81 34 B5 DA 7D\n" 405 "7E 4A 5F B1 B5 E4 DC 49 41 4E A8 81 34 B5 DA 7D\n"
406 "27 7D 05 C1 BD 0A 29 6D AD A3 5D 37 7B 56 B7 1B\n" 406 "27 7D 05 C1 BD 0A 29 6D AD A3 5D 37 7B 56 B7 1B\n"
407 "60", 407 "60",
408 x509_certificate_model::ProcessSubjectPublicKeyInfo( 408 x509_certificate_model::ProcessSubjectPublicKeyInfo(
409 cert->os_cert_handle())); 409 cert->os_cert_handle()));
410 } 410 }
411 } 411 }
412
413 TEST(X509CertificateModelTest, ProcessRawBitsSignatureWrap) {
414 scoped_refptr<net::X509Certificate> cert(net::ImportCertFromFile(
415 net::GetTestCertsDirectory(), "root_ca_cert.pem"));
416 ASSERT_TRUE(cert.get());
417 EXPECT_EQ(
418 "A8 58 42 E4 7C B1 46 11 EE 56 B7 09 08 FB 06 44\n"
419 "F0 A9 60 03 F0 05 23 09 3C 36 D6 28 1B E5 D6 61\n"
420 "15 A0 6F DE 69 AC 28 58 05 F1 CE 9B 61 C2 58 B0\n"
421 "5D ED 6C 75 44 E2 68 01 91 59 B1 4F F3 51 F2 23\n"
422 "F6 47 42 41 57 26 4F 87 1E D2 9F 94 3A E2 D0 4E\n"
423 "6F 02 D2 92 76 2C 0A DD 58 93 E1 47 B9 02 A3 3D\n"
424 "75 B4 BA 24 70 87 32 87 CF 76 4E A0 41 8B 86 42\n"
425 "18 55 ED A5 AE 5D 6A 3A 8C 28 70 4C F1 C5 36 6C\n"
426 "EC 01 A9 D6 51 39 32 31 30 24 82 9F 88 D9 F5 C1\n"
427 "09 6B 5A 6B F1 95 D3 9D 3F E0 42 63 FC B7 32 90\n"
428 "55 56 F2 76 1B 71 38 BD BD FB 3B 23 50 46 4C 2C\n"
429 "4E 49 48 52 EA 05 5F 16 F2 98 51 AF 2F 79 36 2A\n"
430 "A0 BA 36 68 1B 29 8B 7B E8 8C EA 73 31 E5 86 D7\n"
431 "2C D8 56 06 43 D7 72 D2 F0 27 4E 64 0A 2B 27 38\n"
432 "36 CD BE C1 33 DB 74 4B 4E 74 BE 21 BD F6 81 66\n"
433 "D2 FD 2B 7F F4 55 36 C0 ED A7 44 CA B1 78 1D 0F",
434 x509_certificate_model::ProcessRawBitsSignatureWrap(
435 cert->os_cert_handle()));
436 }
OLDNEW
« no previous file with comments | « chrome/common/net/x509_certificate_model_openssl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698