Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: vm/stack_frame_test.cc

Issue 10021072: Remove the deprecated method invocation and field access apis from the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/snapshot_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/stack_frame_test.cc
===================================================================
--- vm/stack_frame_test.cc (revision 6767)
+++ vm/stack_frame_test.cc (working copy)
@@ -248,11 +248,8 @@
Dart_Handle lib = TestCase::LoadTestScript(
kScriptChars,
reinterpret_cast<Dart_NativeEntryResolver>(native_lookup));
- Dart_InvokeStatic(lib,
- Dart_NewString("StackFrameTest"),
- Dart_NewString("testMain"),
- 0,
- NULL);
+ Dart_Handle cls = Dart_GetClass(lib, Dart_NewString("StackFrameTest"));
+ EXPECT_VALID(Dart_Invoke(cls, Dart_NewString("testMain"), 0, NULL));
}
@@ -294,11 +291,8 @@
Dart_Handle lib = TestCase::LoadTestScript(
kScriptChars,
reinterpret_cast<Dart_NativeEntryResolver>(native_lookup));
- Dart_InvokeStatic(lib,
- Dart_NewString("StackFrame2Test"),
- Dart_NewString("testMain"),
- 0,
- NULL);
+ Dart_Handle cls = Dart_GetClass(lib, Dart_NewString("StackFrame2Test"));
+ EXPECT_VALID(Dart_Invoke(cls, Dart_NewString("testMain"), 0, NULL));
}
#endif // TARGET_ARCH_IA32 || TARGET_ARCH_X64.
« no previous file with comments | « vm/snapshot_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698