Index: vm/unit_test.h |
=================================================================== |
--- vm/unit_test.h (revision 16285) |
+++ vm/unit_test.h (working copy) |
@@ -81,10 +81,9 @@ |
CodeGenTestRun##name(__test__.function()); \ |
} \ |
static void CodeGenTestRun##name(const Function& function) { \ |
- GrowableArray<const Object*> arguments; \ |
- const Array& kNoArgumentNames = Array::Handle(); \ |
+ const Array& args = Array::Handle(Object::empty_array()); \ |
Object& result = Object::Handle(); \ |
- result = DartEntry::InvokeStatic(function, arguments, kNoArgumentNames); \ |
+ result = DartEntry::InvokeStatic(function, args); \ |
EXPECT(!result.IsError()); \ |
Instance& actual = Instance::Handle(); \ |
actual ^= result.raw(); \ |
@@ -121,10 +120,9 @@ |
CodeGenTestRun##name1(__test1__.function()); \ |
} \ |
static void CodeGenTestRun##name1(const Function& function) { \ |
- GrowableArray<const Object*> arguments; \ |
- const Array& kNoArgumentNames = Array::Handle(); \ |
+ const Array& args = Array::Handle(Object::empty_array()); \ |
Object& result = Object::Handle(); \ |
- result = DartEntry::InvokeStatic(function, arguments, kNoArgumentNames); \ |
+ result = DartEntry::InvokeStatic(function, args); \ |
EXPECT(!result.IsError()); \ |
Instance& actual = Instance::Handle(); \ |
actual ^= result.raw(); \ |