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

Side by Side Diff: courgette/encode_decode_unittest.cc

Issue 878043002: Add support for RIP relative addresses on x86_64. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix clang build Created 5 years, 9 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
« no previous file with comments | « courgette/disassembler_win32_x64.cc ('k') | no next file » | 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/base_test_unittest.h" 5 #include "courgette/base_test_unittest.h"
6 #include "courgette/courgette.h" 6 #include "courgette/courgette.h"
7 #include "courgette/streams.h" 7 #include "courgette/streams.h"
8 8
9 class EncodeDecodeTest : public BaseTest { 9 class EncodeDecodeTest : public BaseTest {
10 public: 10 public:
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 DeleteEncodedProgram(encoded2); 68 DeleteEncodedProgram(encoded2);
69 } 69 }
70 70
71 TEST_F(EncodeDecodeTest, PE) { 71 TEST_F(EncodeDecodeTest, PE) {
72 std::string file = FileContents("setup1.exe"); 72 std::string file = FileContents("setup1.exe");
73 TestAssembleToStreamDisassemble(file, 971851); 73 TestAssembleToStreamDisassemble(file, 971851);
74 } 74 }
75 75
76 TEST_F(EncodeDecodeTest, PE64) { 76 TEST_F(EncodeDecodeTest, PE64) {
77 std::string file = FileContents("chrome64_1.exe"); 77 std::string file = FileContents("chrome64_1.exe");
78 TestAssembleToStreamDisassemble(file, 803782); 78 TestAssembleToStreamDisassemble(file, 808845);
79 } 79 }
80 80
81 TEST_F(EncodeDecodeTest, Elf_Small) { 81 TEST_F(EncodeDecodeTest, Elf_Small) {
82 std::string file = FileContents("elf-32-1"); 82 std::string file = FileContents("elf-32-1");
83 TestAssembleToStreamDisassemble(file, 135989); 83 TestAssembleToStreamDisassemble(file, 135989);
84 } 84 }
85 85
86 TEST_F(EncodeDecodeTest, Elf_HighBSS) { 86 TEST_F(EncodeDecodeTest, Elf_HighBSS) {
87 std::string file = FileContents("elf-32-high-bss"); 87 std::string file = FileContents("elf-32-high-bss");
88 TestAssembleToStreamDisassemble(file, 7309); 88 TestAssembleToStreamDisassemble(file, 7309);
89 } 89 }
OLDNEW
« no previous file with comments | « courgette/disassembler_win32_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698