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

Side by Side Diff: chrome/app/signature_validator_win_unittest.cc

Issue 686883002: Add crypto/wincrypt_shim.h wrapper header to resolve BoringSSL conflicts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sleevi comments Created 6 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 <windows.h> 5 #include <windows.h>
6 #include <atlstr.h> 6 #include <atlstr.h>
7 #include <wincrypt.h>
8 #include <wintrust.h> 7 #include <wintrust.h>
9 8
10 #include "base/base_paths.h" 9 #include "base/base_paths.h"
11 #include "base/basictypes.h" 10 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
13 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
14 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
15 #include "base/logging.h" 14 #include "base/logging.h"
16 #include "base/path_service.h" 15 #include "base/path_service.h"
17 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
18 #include "base/strings/string_piece.h" 17 #include "base/strings/string_piece.h"
19 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
20 #include "chrome/app/signature_validator_win.h" 19 #include "chrome/app/signature_validator_win.h"
21 #include "crypto/sha2.h" 20 #include "crypto/sha2.h"
21 #include "crypto/wincrypt_shim.h"
22 #include "net/cert/test_root_certs.h" 22 #include "net/cert/test_root_certs.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 namespace { 25 namespace {
26 26
27 const char kGoogleCertIssuer[] = "Google Inc"; 27 const char kGoogleCertIssuer[] = "Google Inc";
28 const int CERT_BUFFER_SIZE = 1024; 28 const int CERT_BUFFER_SIZE = 1024;
29 29
30 const base::FilePath::CharType kCertificateRelativePath[] = 30 const base::FilePath::CharType kCertificateRelativePath[] =
31 FILE_PATH_LITERAL("chrome\\app\\test_data\\certificates\\"); 31 FILE_PATH_LITERAL("chrome\\app\\test_data\\certificates\\");
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 TEST_F(SignatureValidatorTest, CertPinningTest) { 122 TEST_F(SignatureValidatorTest, CertPinningTest) {
123 RunTest(L"different_hash.dll", true, false); 123 RunTest(L"different_hash.dll", true, false);
124 } 124 }
125 125
126 TEST_F(SignatureValidatorTest, ExpiredCertTest) { 126 TEST_F(SignatureValidatorTest, ExpiredCertTest) {
127 //TODO(caitkp): Figure out how to sign a dll with an expired cert. 127 //TODO(caitkp): Figure out how to sign a dll with an expired cert.
128 RunTest(L"expired.dll", false, false); 128 RunTest(L"expired.dll", false, false);
129 } 129 }
130 130
131 131
OLDNEW
« no previous file with comments | « chrome/app/signature_validator_win.cc ('k') | chrome/browser/password_manager/password_store_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698