| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "courgette/assembly_program.h" | 5 #include "courgette/assembly_program.h" |
| 6 #include "courgette/base_test_unittest.h" | 6 #include "courgette/base_test_unittest.h" |
| 7 #include "courgette/disassembler_elf_32_x86.h" | 7 #include "courgette/disassembler_elf_32_x86.h" |
| 8 | 8 |
| 9 class DisassemblerElf32X86Test : public BaseTest { | 9 class DisassemblerElf32X86Test : public BaseTest { |
| 10 public: | 10 public: |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 for (std::vector<courgette::RVA>::iterator abs32 = | 60 for (std::vector<courgette::RVA>::iterator abs32 = |
| 61 disassembler->Abs32Locations().begin(); | 61 disassembler->Abs32Locations().begin(); |
| 62 abs32 != disassembler->Abs32Locations().end(); | 62 abs32 != disassembler->Abs32Locations().end(); |
| 63 abs32++) { | 63 abs32++) { |
| 64 EXPECT_TRUE(rel.find(*abs32) == rel.end()); | 64 EXPECT_TRUE(rel.find(*abs32) == rel.end()); |
| 65 } | 65 } |
| 66 delete program; | 66 delete program; |
| 67 } | 67 } |
| 68 | 68 |
| 69 TEST_F(DisassemblerElf32X86Test, All) { | 69 TEST_F(DisassemblerElf32X86Test, All) { |
| 70 TestExe("elf-32-1", 200, 3441); | 70 TestExe("elf-32-1", 200, 3442); |
| 71 } | 71 } |
| OLD | NEW |