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 <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 Loading... |
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 } |
OLD | NEW |