OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // TODO(zra): Remove when tests are ready to enable. | |
6 #include "platform/globals.h" | |
7 #if !defined(TARGET_ARCH_ARM64) | |
8 | |
9 #include "platform/assert.h" | 5 #include "platform/assert.h" |
10 #include "vm/globals.h" | 6 #include "vm/globals.h" |
11 #include "vm/object_id_ring.h" | 7 #include "vm/object_id_ring.h" |
12 #include "vm/unit_test.h" | 8 #include "vm/unit_test.h" |
13 #include "vm/dart_api_impl.h" | 9 #include "vm/dart_api_impl.h" |
14 #include "vm/dart_api_state.h" | 10 #include "vm/dart_api_state.h" |
15 | 11 |
16 namespace dart { | 12 namespace dart { |
17 | 13 |
18 | 14 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 // those ids. | 183 // those ids. |
188 heap->CollectGarbage(Heap::kOld); | 184 heap->CollectGarbage(Heap::kOld); |
189 RawObject* raw_object_moved1 = ring->GetObjectForId(raw_obj_id1); | 185 RawObject* raw_object_moved1 = ring->GetObjectForId(raw_obj_id1); |
190 RawObject* raw_object_moved2 = ring->GetObjectForId(raw_obj_id2); | 186 RawObject* raw_object_moved2 = ring->GetObjectForId(raw_obj_id2); |
191 // Objects should now be null. | 187 // Objects should now be null. |
192 EXPECT_EQ(Object::null(), raw_object_moved1); | 188 EXPECT_EQ(Object::null(), raw_object_moved1); |
193 EXPECT_EQ(Object::null(), raw_object_moved2); | 189 EXPECT_EQ(Object::null(), raw_object_moved2); |
194 } | 190 } |
195 | 191 |
196 } // namespace dart | 192 } // namespace dart |
197 | |
198 #endif // !defined(TARGET_ARCH_ARM64) | |
OLD | NEW |