OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #include "vm/assert.h" | 5 #include "platform/assert.h" |
6 #include "vm/class_finalizer.h" | 6 #include "vm/class_finalizer.h" |
7 #include "vm/unit_test.h" | 7 #include "vm/unit_test.h" |
8 | 8 |
9 namespace dart { | 9 namespace dart { |
10 | 10 |
11 | 11 |
12 static RawClass* CreateTestClass(const char* name) { | 12 static RawClass* CreateTestClass(const char* name) { |
13 const Array& empty_array = Array::Handle(Array::Empty()); | 13 const Array& empty_array = Array::Handle(Array::Empty()); |
14 const String& class_name = String::Handle(String::NewSymbol(name)); | 14 const String& class_name = String::Handle(String::NewSymbol(name)); |
15 const Script& script = Script::Handle(); | 15 const Script& script = Script::Handle(); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 const UnresolvedClass& unresolved = UnresolvedClass::Handle( | 75 const UnresolvedClass& unresolved = UnresolvedClass::Handle( |
76 UnresolvedClass::New(0, String::Handle(), superclass_name)); | 76 UnresolvedClass::New(0, String::Handle(), superclass_name)); |
77 const TypeArguments& type_arguments = TypeArguments::Handle(); | 77 const TypeArguments& type_arguments = TypeArguments::Handle(); |
78 rhb.set_super_type(Type::Handle(Type::NewParameterizedType( | 78 rhb.set_super_type(Type::Handle(Type::NewParameterizedType( |
79 Object::Handle(unresolved.raw()), type_arguments))); | 79 Object::Handle(unresolved.raw()), type_arguments))); |
80 ClassFinalizer::AddPendingClasses(classes); | 80 ClassFinalizer::AddPendingClasses(classes); |
81 EXPECT(ClassFinalizer::FinalizePendingClasses()); | 81 EXPECT(ClassFinalizer::FinalizePendingClasses()); |
82 } | 82 } |
83 | 83 |
84 } // namespace dart | 84 } // namespace dart |
OLD | NEW |