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

Side by Side Diff: courgette/encode_decode_unittest.cc

Issue 1658463002: [Courgette] Fix AssemblyProgram parsing for ELF-ARM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused DisassemblerElf32 accessors. Created 4 years, 10 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_elf_32.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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "courgette/assembly_program.h" 8 #include "courgette/assembly_program.h"
9 #include "courgette/base_test_unittest.h" 9 #include "courgette/base_test_unittest.h"
10 #include "courgette/courgette.h" 10 #include "courgette/courgette.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 TEST_F(EncodeDecodeTest, Elf_Small) { 88 TEST_F(EncodeDecodeTest, Elf_Small) {
89 std::string file = FileContents("elf-32-1"); 89 std::string file = FileContents("elf-32-1");
90 TestAssembleToStreamDisassemble(file, 136218); 90 TestAssembleToStreamDisassemble(file, 136218);
91 } 91 }
92 92
93 TEST_F(EncodeDecodeTest, Elf_HighBSS) { 93 TEST_F(EncodeDecodeTest, Elf_HighBSS) {
94 std::string file = FileContents("elf-32-high-bss"); 94 std::string file = FileContents("elf-32-high-bss");
95 TestAssembleToStreamDisassemble(file, 7312); 95 TestAssembleToStreamDisassemble(file, 7312);
96 } 96 }
97
98 TEST_F(EncodeDecodeTest, Elf_Arm) {
99 std::string file = FileContents("elf-armv7");
100 TestAssembleToStreamDisassemble(file, 8531);
101 }
OLDNEW
« no previous file with comments | « courgette/disassembler_elf_32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698