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

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

Issue 2090463002: Move net/base/test_data_directory.[cc,h] to net/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "net/base/test_data_directory.h"
11 #include "net/test/cert_test_util.h" 10 #include "net/test/cert_test_util.h"
11 #include "net/test/test_data_directory.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 #if defined(USE_NSS_CERTS) 14 #if defined(USE_NSS_CERTS)
15 #include "crypto/scoped_test_nss_db.h" 15 #include "crypto/scoped_test_nss_db.h"
16 #include "net/cert/nss_cert_database.h" 16 #include "net/cert/nss_cert_database.h"
17 #endif 17 #endif
18 18
19 TEST(X509CertificateModelTest, GetCertNameOrNicknameAndGetTitle) { 19 TEST(X509CertificateModelTest, GetCertNameOrNicknameAndGetTitle) {
20 scoped_refptr<net::X509Certificate> cert( 20 scoped_refptr<net::X509Certificate> cert(
21 net::ImportCertFromFile(net::GetTestCertsDirectory(), 21 net::ImportCertFromFile(net::GetTestCertsDirectory(),
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 "10 21 14 7F 1B 70 3D 89 1A 40 8A 06 2C 5D 50 19\n" 421 "10 21 14 7F 1B 70 3D 89 1A 40 8A 06 2C 5D 50 19\n"
422 "62 F9 C7 45 89 F2 3D 66 05 3D 7D 75 5B 55 1E 80\n" 422 "62 F9 C7 45 89 F2 3D 66 05 3D 7D 75 5B 55 1E 80\n"
423 "42 72 A1 9A 7C 6D 0A 74 F6 EE A6 21 6C 3A 98 FB\n" 423 "42 72 A1 9A 7C 6D 0A 74 F6 EE A6 21 6C 3A 98 FB\n"
424 "77 82 5F F2 6B 56 E6 DD 9B 8E 50 F0 C6 AE FD EA\n" 424 "77 82 5F F2 6B 56 E6 DD 9B 8E 50 F0 C6 AE FD EA\n"
425 "A6 05 07 A9 26 06 56 B3 B2 D9 B2 37 A0 21 3E 79\n" 425 "A6 05 07 A9 26 06 56 B3 B2 D9 B2 37 A0 21 3E 79\n"
426 "06 1F B9 51 BE F4 B1 49 4D 90 B5 33 E5 0E C7 5E\n" 426 "06 1F B9 51 BE F4 B1 49 4D 90 B5 33 E5 0E C7 5E\n"
427 "5B 40 C5 6A 04 D1 43 7A 94 6A A4 4F 61 FC 82 E0", 427 "5B 40 C5 6A 04 D1 43 7A 94 6A A4 4F 61 FC 82 E0",
428 x509_certificate_model::ProcessRawBitsSignatureWrap( 428 x509_certificate_model::ProcessRawBitsSignatureWrap(
429 cert->os_cert_handle())); 429 cert->os_cert_handle()));
430 } 430 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/ssl_client_certificate_selector_browsertest.cc ('k') | chrome/test/ppapi/ppapi_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698