| 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 c9aa7feeb1683f503c7eef8792b4f49d6409acb0..02c28dbad4e38d2afe8072547df75b24203d02d1 100644
|
| --- a/runtime/vm/dart_api_impl_test.cc
|
| +++ b/runtime/vm/dart_api_impl_test.cc
|
| @@ -8572,7 +8572,8 @@ TEST_CASE(MakeExternalString) {
|
|
|
| // Test with single character canonical string, it should not become
|
| // external string but the peer should be setup for it.
|
| - Dart_Handle canonical_str = Api::NewHandle(thread, Symbols::New("*"));
|
| + Dart_Handle canonical_str = Api::NewHandle(thread, Symbols::New(thread,
|
| + "*"));
|
| EXPECT(Dart_IsString(canonical_str));
|
| EXPECT(!Dart_IsExternalString(canonical_str));
|
| uint8_t ext_canonical_str[kLength];
|
| @@ -8662,8 +8663,8 @@ TEST_CASE(MakeExternalString) {
|
| // Test with a symbol (hash value should be preserved on externalization).
|
| const char* symbol_ascii = "?unseen";
|
| expected_length = strlen(symbol_ascii);
|
| - Dart_Handle symbol_str =
|
| - Api::NewHandle(thread, Symbols::New(symbol_ascii, expected_length));
|
| + Dart_Handle symbol_str = Api::NewHandle(thread,
|
| + Symbols::New(thread, symbol_ascii, expected_length));
|
| EXPECT_VALID(symbol_str);
|
| EXPECT(Dart_IsString(symbol_str));
|
| EXPECT(Dart_IsStringLatin1(symbol_str));
|
|
|