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/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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, 814709); | 78 TestAssembleToStreamDisassemble(file, 814709); |
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, 135988); | 83 TestAssembleToStreamDisassemble(file, 135988); |
84 } | 84 } |
| 85 |
| 86 TEST_F(EncodeDecodeTest, Elf_HighBSS) { |
| 87 std::string file = FileContents("elf-32-high-bss"); |
| 88 TestAssembleToStreamDisassemble(file, 7308); |
| 89 } |
OLD | NEW |