| 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 "elf_file.h" | 5 #include "elf_file.h" |
| 6 | 6 |
| 7 #include <limits.h> | 7 #include <limits.h> |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 #include <unistd.h> | 9 #include <unistd.h> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 } else { | 168 } else { |
| 169 ProcessPack<ELF64_traits>(relocs_so, packed_relocs_so); | 169 ProcessPack<ELF64_traits>(relocs_so, packed_relocs_so); |
| 170 } | 170 } |
| 171 } | 171 } |
| 172 } | 172 } |
| 173 | 173 |
| 174 } // namespace | 174 } // namespace |
| 175 | 175 |
| 176 namespace relocation_packer { | 176 namespace relocation_packer { |
| 177 | 177 |
| 178 TEST(ElfFile, PackRelocations) { | 178 TEST(ElfFile, PackRelocationsArm32) { |
| 179 RunPackRelocationsTestFor("arm32"); | 179 RunPackRelocationsTestFor("arm32"); |
| 180 } |
| 181 |
| 182 TEST(ElfFile, PackRelocationsArm64) { |
| 180 RunPackRelocationsTestFor("arm64"); | 183 RunPackRelocationsTestFor("arm64"); |
| 181 } | 184 } |
| 182 | 185 |
| 183 TEST(ElfFile, UnpackRelocations) { | 186 TEST(ElfFile, UnpackRelocationsArm32) { |
| 184 RunUnpackRelocationsTestFor("arm32"); | 187 RunUnpackRelocationsTestFor("arm32"); |
| 188 } |
| 189 |
| 190 TEST(ElfFile, UnpackRelocationsArm64) { |
| 185 RunUnpackRelocationsTestFor("arm64"); | 191 RunUnpackRelocationsTestFor("arm64"); |
| 186 } | 192 } |
| 187 | 193 |
| 188 } // namespace relocation_packer | 194 } // namespace relocation_packer |
| OLD | NEW |