Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stddef.h> | 6 #include <stddef.h> |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <wintrust.h> | 8 #include <wintrust.h> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 261 namespace { | 261 namespace { |
| 262 | 262 |
| 263 const CertificateTestData kCertificateTestData[] = { | 263 const CertificateTestData kCertificateTestData[] = { |
| 264 { | 264 { |
| 265 "signed.exe", | 265 "signed.exe", |
| 266 1, | 266 1, |
| 267 }, { | 267 }, { |
| 268 "unsigned.exe", | 268 "unsigned.exe", |
| 269 0, | 269 0, |
| 270 }, { | 270 }, { |
| 271 "wow_helper.exe", | 271 "disable_outdated_build_detector.exe", |
| 272 1, | 272 1, |
|
grt (UTC plus 2)
2016/09/07 10:03:01
this constant doesn't change because both signatur
| |
| 273 }, { | 273 }, { |
| 274 "signed_twice.exe", | 274 "signed_twice.exe", |
| 275 2, | 275 2, |
| 276 }, | 276 }, |
| 277 }; | 277 }; |
| 278 | 278 |
| 279 } // namespace | 279 } // namespace |
| 280 | 280 |
| 281 INSTANTIATE_TEST_CASE_P(SignedExe, | 281 INSTANTIATE_TEST_CASE_P(SignedExe, |
| 282 PeImageReaderCertificateTest, | 282 PeImageReaderCertificateTest, |
| 283 testing::Values(&kCertificateTestData[0])); | 283 testing::Values(&kCertificateTestData[0])); |
| 284 INSTANTIATE_TEST_CASE_P(UnsignedExe, | 284 INSTANTIATE_TEST_CASE_P(UnsignedExe, |
| 285 PeImageReaderCertificateTest, | 285 PeImageReaderCertificateTest, |
| 286 testing::Values(&kCertificateTestData[1])); | 286 testing::Values(&kCertificateTestData[1])); |
| 287 INSTANTIATE_TEST_CASE_P(WowHelperExe, | 287 INSTANTIATE_TEST_CASE_P(DisableOutdatedBuildDetectorExe, |
| 288 PeImageReaderCertificateTest, | 288 PeImageReaderCertificateTest, |
| 289 testing::Values(&kCertificateTestData[2])); | 289 testing::Values(&kCertificateTestData[2])); |
| 290 INSTANTIATE_TEST_CASE_P(SignedTwiceExe, | 290 INSTANTIATE_TEST_CASE_P(SignedTwiceExe, |
| 291 PeImageReaderCertificateTest, | 291 PeImageReaderCertificateTest, |
| 292 testing::Values(&kCertificateTestData[3])); | 292 testing::Values(&kCertificateTestData[3])); |
| OLD | NEW |