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

Unified Diff: runtime/vm/dart_api_impl_test.cc

Issue 22876025: The peer pointer was not being setup at all, fixed that and added a test case (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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 | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl_test.cc
===================================================================
--- runtime/vm/dart_api_impl_test.cc (revision 26538)
+++ runtime/vm/dart_api_impl_test.cc (working copy)
@@ -6970,6 +6970,11 @@
EXPECT_EQ(canonical_str, str);
EXPECT(Dart_IsString(canonical_str));
EXPECT(!Dart_IsExternalString(canonical_str));
+ void* peer;
+ EXPECT_VALID(Dart_StringGetProperties(str, &size, &length, &peer));
+ EXPECT_EQ(1, size);
+ EXPECT_EQ(1, length);
+ EXPECT_EQ(reinterpret_cast<void*>(&canonical_str_peer), peer);
// Test with a one byte ascii string.
const char* ascii = "string";
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698