| 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 "base/files/file_path.h" | 5 #include "base/files/file_path.h" | 
| 6 #include "base/files/memory_mapped_file.h" | 6 #include "base/files/memory_mapped_file.h" | 
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" | 
| 8 #include "chrome/browser/safe_browsing/pe_image_reader_win.h" |  | 
| 9 #include "chrome/common/chrome_paths.h" | 8 #include "chrome/common/chrome_paths.h" | 
|  | 9 #include "chrome/common/safe_browsing/pe_image_reader_win.h" | 
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" | 
| 11 | 11 | 
| 12 struct TestData { | 12 struct TestData { | 
| 13   const char* filename; | 13   const char* filename; | 
| 14   safe_browsing::PeImageReader::WordSize word_size; | 14   safe_browsing::PeImageReader::WordSize word_size; | 
| 15   WORD machine_identifier; | 15   WORD machine_identifier; | 
| 16   WORD optional_header_size; | 16   WORD optional_header_size; | 
| 17   size_t number_of_sections; | 17   size_t number_of_sections; | 
| 18   size_t number_of_debug_entries; | 18   size_t number_of_debug_entries; | 
| 19 }; | 19 }; | 
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 148 }; | 148 }; | 
| 149 | 149 | 
| 150 }  // namespace | 150 }  // namespace | 
| 151 | 151 | 
| 152 INSTANTIATE_TEST_CASE_P(WordSize32, | 152 INSTANTIATE_TEST_CASE_P(WordSize32, | 
| 153                         PeImageReaderTest, | 153                         PeImageReaderTest, | 
| 154                         testing::Values(&kTestData[0])); | 154                         testing::Values(&kTestData[0])); | 
| 155 INSTANTIATE_TEST_CASE_P(WordSize64, | 155 INSTANTIATE_TEST_CASE_P(WordSize64, | 
| 156                         PeImageReaderTest, | 156                         PeImageReaderTest, | 
| 157                         testing::Values(&kTestData[1])); | 157                         testing::Values(&kTestData[1])); | 
| OLD | NEW | 
|---|