Index: runtime/vm/dart_api_impl_test.cc |
diff --git a/runtime/vm/dart_api_impl_test.cc b/runtime/vm/dart_api_impl_test.cc |
index 68926f215e78f316bb62a3fa03ed922eb95e3da5..8359aa2a099f325dac60039a962559a2da546ec6 100644 |
--- a/runtime/vm/dart_api_impl_test.cc |
+++ b/runtime/vm/dart_api_impl_test.cc |
@@ -2890,23 +2890,31 @@ TEST_CASE(ImportLibrary5) { |
void NewNativePort_send123(Dart_Port dest_port_id, |
Dart_Port reply_port_id, |
- uint8_t* data) { |
+ Dart_CObject *message) { |
+ // Gets a null message. |
+ EXPECT_NOTNULL(message); |
+ EXPECT_EQ(Dart_CObject::kNull, message->type); |
+ |
// Post integer value. |
- Dart_CObject object; |
- object.type = Dart_CObject::kInt32; |
- object.value.as_int32 = 123; |
- Dart_PostCObject(reply_port_id, &object); |
+ Dart_CObject response; |
+ response.type = Dart_CObject::kInt32; |
+ response.value.as_int32 = 123; |
+ Dart_PostCObject(reply_port_id, &response); |
} |
void NewNativePort_send321(Dart_Port dest_port_id, |
Dart_Port reply_port_id, |
- uint8_t* data) { |
+ Dart_CObject* message) { |
+ // Gets a null message. |
+ EXPECT_NOTNULL(message); |
+ EXPECT_EQ(Dart_CObject::kNull, message->type); |
+ |
// Post integer value. |
- Dart_CObject object; |
- object.type = Dart_CObject::kInt32; |
- object.value.as_int32 = 321; |
- Dart_PostCObject(reply_port_id, &object); |
+ Dart_CObject response; |
+ response.type = Dart_CObject::kInt32; |
+ response.value.as_int32 = 321; |
+ Dart_PostCObject(reply_port_id, &response); |
} |