Searched refs:expected_utf16_length (Results 1 – 1 of 1) sorted by relevance
57 void AssertString(int32_t expected_utf16_length, in AssertString() argument62 std::unique_ptr<uint16_t[]> utf16_expected(new uint16_t[expected_utf16_length]); in AssertString()63 for (int32_t i = 0; i < expected_utf16_length; i++) { in AssertString()72 hs.NewHandle(String::AllocFromModifiedUtf8(self, expected_utf16_length, utf8_in))); in AssertString()73 ASSERT_EQ(expected_utf16_length, string->GetLength()); in AssertString()76 ASSERT_TRUE(string->Equals(utf8_in) || (expected_utf16_length == 1 && strlen(utf8_in) == 0)); in AssertString()77 for (int32_t i = 0; i < expected_utf16_length; i++) { in AssertString()