| OLD | NEW |
| 1 // Copyright (c) 2012, 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 // TODO(zra): Remove when tests are ready to enable. |
| 6 #include "platform/globals.h" |
| 7 #if !defined(TARGET_ARCH_ARM64) |
| 8 |
| 5 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 6 #include "vm/assembler.h" | 10 #include "vm/assembler.h" |
| 7 #include "vm/class_finalizer.h" | 11 #include "vm/class_finalizer.h" |
| 8 #include "vm/compiler.h" | 12 #include "vm/compiler.h" |
| 9 #include "vm/dart_entry.h" | 13 #include "vm/dart_entry.h" |
| 10 #include "vm/object.h" | 14 #include "vm/object.h" |
| 11 #include "vm/resolver.h" | 15 #include "vm/resolver.h" |
| 12 #include "vm/symbols.h" | 16 #include "vm/symbols.h" |
| 13 #include "vm/unit_test.h" | 17 #include "vm/unit_test.h" |
| 14 | 18 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 EXPECT(!function.IsNull()); | 108 EXPECT(!function.IsNull()); |
| 105 const Array& args = Array::Handle(Array::New(1)); | 109 const Array& args = Array::Handle(Array::New(1)); |
| 106 args.SetAt(0, instance); | 110 args.SetAt(0, instance); |
| 107 const Object& retval = Object::Handle(DartEntry::InvokeFunction(function, | 111 const Object& retval = Object::Handle(DartEntry::InvokeFunction(function, |
| 108 args)); | 112 args)); |
| 109 EXPECT(retval.IsError()); | 113 EXPECT(retval.IsError()); |
| 110 EXPECT_SUBSTRING("++++", Error::Cast(retval).ToErrorCString()); | 114 EXPECT_SUBSTRING("++++", Error::Cast(retval).ToErrorCString()); |
| 111 } | 115 } |
| 112 | 116 |
| 113 } // namespace dart | 117 } // namespace dart |
| 118 |
| 119 #endif // !defined(TARGET_ARCH_ARM64) |
| OLD | NEW |