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> |
| 7 #include <stdint.h> |
6 #include <wintrust.h> | 8 #include <wintrust.h> |
7 | 9 |
8 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
9 #include "base/files/memory_mapped_file.h" | 11 #include "base/files/memory_mapped_file.h" |
| 12 #include "base/macros.h" |
10 #include "base/path_service.h" | 13 #include "base/path_service.h" |
11 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
12 #include "chrome/common/safe_browsing/pe_image_reader_win.h" | 15 #include "chrome/common/safe_browsing/pe_image_reader_win.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
15 | 18 |
16 using ::testing::_; | 19 using ::testing::_; |
17 using ::testing::Gt; | 20 using ::testing::Gt; |
18 using ::testing::NotNull; | 21 using ::testing::NotNull; |
19 using ::testing::Return; | 22 using ::testing::Return; |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 testing::Values(&kCertificateTestData[0])); | 283 testing::Values(&kCertificateTestData[0])); |
281 INSTANTIATE_TEST_CASE_P(UnsignedExe, | 284 INSTANTIATE_TEST_CASE_P(UnsignedExe, |
282 PeImageReaderCertificateTest, | 285 PeImageReaderCertificateTest, |
283 testing::Values(&kCertificateTestData[1])); | 286 testing::Values(&kCertificateTestData[1])); |
284 INSTANTIATE_TEST_CASE_P(WowHelperExe, | 287 INSTANTIATE_TEST_CASE_P(WowHelperExe, |
285 PeImageReaderCertificateTest, | 288 PeImageReaderCertificateTest, |
286 testing::Values(&kCertificateTestData[2])); | 289 testing::Values(&kCertificateTestData[2])); |
287 INSTANTIATE_TEST_CASE_P(SignedTwiceExe, | 290 INSTANTIATE_TEST_CASE_P(SignedTwiceExe, |
288 PeImageReaderCertificateTest, | 291 PeImageReaderCertificateTest, |
289 testing::Values(&kCertificateTestData[3])); | 292 testing::Values(&kCertificateTestData[3])); |
OLD | NEW |