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

Unified Diff: runtime/vm/debugger_api_impl_test.cc

Issue 61153006: Add closure object type to debugger wire protocol (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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 | « runtime/vm/debugger_api_impl.cc ('k') | tools/ddbg.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger_api_impl_test.cc
===================================================================
--- runtime/vm/debugger_api_impl_test.cc (revision 30163)
+++ runtime/vm/debugger_api_impl_test.cc (working copy)
@@ -1887,17 +1887,19 @@
Dart_Handle clo = Invoke("main");
EXPECT_VALID(clo);
EXPECT(Dart_IsClosure(clo));
- Dart_Handle name;
+ Dart_Handle name, sig;
Dart_CodeLocation loc;
loc.script_url = Dart_Null();
loc.library_id = -1;
loc.token_pos = -1;
- Dart_Handle res = Dart_GetClosureInfo(clo, &name, &loc);
+ Dart_Handle res = Dart_GetClosureInfo(clo, &name, &sig, &loc);
EXPECT_VALID(res);
EXPECT_TRUE(res);
EXPECT_VALID(name);
EXPECT(Dart_IsString(name));
EXPECT_STREQ("foo", ToCString(name));
+ EXPECT(Dart_IsString(sig));
+ EXPECT_STREQ("() => void", ToCString(sig));
EXPECT(Dart_IsString(loc.script_url));
EXPECT_STREQ("dart:test-lib", ToCString(loc.script_url));
EXPECT_EQ(0, loc.token_pos);
« no previous file with comments | « runtime/vm/debugger_api_impl.cc ('k') | tools/ddbg.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698