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

Side by Side Diff: courgette/disassembler_elf_32_x86_unittest.cc

Issue 8501023: Fix two pointer arithmetic errors. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix another < versus <= Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « courgette/disassembler_elf_32_x86.cc ('k') | courgette/disassembler_win32_x86.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « courgette/disassembler_elf_32_x86.cc ('k') | courgette/disassembler_win32_x86.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698