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

Side by Side Diff: third_party/android_platform/bionic/tools/relocation_packer/src/elf_file_unittest.cc

Issue 1099343004: Synchronize Android relocation packer source with AOSP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698