Index: runtime/vm/code_descriptors_test.cc |
diff --git a/runtime/vm/code_descriptors_test.cc b/runtime/vm/code_descriptors_test.cc |
index 0097bb457ca1e4bbc5f7d3f952087a8bade936d2..3d2b6a175e5ff5aa23369544a6c09c2700d7fcfd 100644 |
--- a/runtime/vm/code_descriptors_test.cc |
+++ b/runtime/vm/code_descriptors_test.cc |
@@ -319,52 +319,4 @@ TEST_CASE(DescriptorList_TokenPositions) { |
} |
} |
- |
-TEST_CASE(CodeSourceMap_TokenPositions) { |
- const intptr_t token_positions[] = { |
- kMinInt32, |
- 5, |
- 13, |
- 13, |
- 13, |
- 13, |
- 31, |
- 23, |
- 23, |
- 23, |
- 33, |
- 33, |
- 5, |
- 5, |
- TokenPosition::kMinSourcePos, |
- TokenPosition::kMaxSourcePos, |
- }; |
- const intptr_t num_token_positions = |
- sizeof(token_positions) / sizeof(token_positions[0]); |
- |
- CodeSourceMapBuilder* builder = new CodeSourceMapBuilder(); |
- ASSERT(builder != NULL); |
- |
- for (intptr_t i = 0; i < num_token_positions; i++) { |
- builder->AddEntry(i, TokenPosition(token_positions[i])); |
- } |
- |
- const CodeSourceMap& code_Source_map = |
- CodeSourceMap::Handle(builder->Finalize()); |
- |
- ASSERT(!code_Source_map.IsNull()); |
- CodeSourceMap::Iterator it(code_Source_map); |
- |
- uintptr_t i = 0; |
- while (it.MoveNext()) { |
- EXPECT(it.PcOffset() == i); |
- if (token_positions[i] != it.TokenPos().value()) { |
- OS::Print("[%" Pd "]: Expected: %" Pd " != %" Pd "\n", i, |
- token_positions[i], it.TokenPos().value()); |
- } |
- EXPECT(token_positions[i] == it.TokenPos().value()); |
- i++; |
- } |
-} |
- |
} // namespace dart |