Lines Matching refs:testStrLength

513     size_t testStrLength = static_cast<size_t>(std::char_traits<char16_t>::length(testStr));
514 char16_t buffer[testStrLength + 1];
518 ExpectCheckCall(napi_create_string_utf16(env, testStr, testStrLength, &result));
519 ExpectCheckCall(napi_get_value_string_utf16(env, result, buffer, testStrLength + 1, &copied));
521 EXPECT_EQ(testStrLength, copied);
612 int testStrLength = static_cast<int>(std::char_traits<char16_t>::length(testStr));
615 ret = napi_create_string_utf16(env, testStr, testStrLength, nullptr);
632 int testStrLength = static_cast<int>(std::char_traits<char16_t>::length(testStr));
636 ret = napi_create_string_utf16(nullptr, testStr, testStrLength, &result);
658 size_t testStrLength = static_cast<size_t>(std::char_traits<char16_t>::length(testStr));
659 char16_t buffer[testStrLength + 1];
663 ExpectCheckCall(napi_create_string_utf16(env, testStr, testStrLength, &result));
664 ExpectCheckCall(napi_get_value_string_utf16(env, result, buffer, testStrLength + 1, &copied));
666 EXPECT_EQ(testStrLength, copied);
691 size_t testStrLength = static_cast<size_t>(std::char_traits<char16_t>::length(testStr));
692 char16_t buffer[testStrLength + 1];
696 ExpectCheckCall(napi_create_string_utf16(env, testStr, testStrLength, &result));
697 ExpectCheckCall(napi_get_value_string_utf16(env, result, buffer, testStrLength + 1, &copied));
699 EXPECT_EQ(testStrLength, copied);
723 size_t testStrLength = static_cast<size_t>(std::char_traits<char16_t>::length(testStr));
724 char16_t buffer[testStrLength + 1];
728 ExpectCheckCall(napi_create_string_utf16(env, testStr, testStrLength, &result));
729 ExpectCheckCall(napi_get_value_string_utf16(env, result, buffer, testStrLength + 1, &copied));
731 EXPECT_EQ(testStrLength, copied);
755 size_t testStrLength = static_cast<size_t>(std::char_traits<char16_t>::length(testStr));
756 char16_t buffer[testStrLength];
760 ExpectCheckCall(napi_create_string_utf16(env, testStr, testStrLength, &result));
761 ExpectCheckCall(napi_get_value_string_utf16(env, result, buffer, testStrLength + 1, &copied));
763 EXPECT_EQ(testStrLength, copied);
786 size_t testStrLength = static_cast<size_t>(std::char_traits<char16_t>::length(testStr));
787 char16_t buffer[testStrLength];
791 ExpectCheckCall(napi_create_string_utf16(env, testStr, testStrLength, &result));
816 size_t testStrLength = static_cast<size_t>(std::char_traits<char16_t>::length(testStr));
822 ExpectCheckCall(napi_create_string_utf16(env, testStr, testStrLength, &result));
825 EXPECT_EQ(copied, testStrLength);
848 int testStrLength = static_cast<int>(std::char_traits<char16_t>::length(buffer));
856 ret = napi_get_value_string_utf16(env, result, buffer, testStrLength, &copied);
878 size_t testStrLength = static_cast<size_t>(std::char_traits<char16_t>::length(testStr));
882 ExpectCheckCall(napi_create_string_utf16(env, testStr, testStrLength, &result));
883 ExpectCheckCall(napi_get_value_string_utf16(env, result, nullptr, testStrLength, &copied));
885 EXPECT_EQ(testStrLength, copied);
905 int testStrLength = static_cast<int>(std::char_traits<char16_t>::length(testStr));
906 char16_t buffer[testStrLength];
910 ExpectCheckCall(napi_create_string_utf16(env, testStr, testStrLength, &result));
911 ret = napi_get_value_string_utf16(env, result, buffer, testStrLength, nullptr);
933 int testStrLength = static_cast<int>(std::char_traits<char16_t>::length(testStr));
934 char16_t buffer[testStrLength];
938 ExpectCheckCall(napi_create_string_utf16(env, testStr, testStrLength, &result));
940 ret = napi_get_value_string_utf16(nullptr, result, buffer, testStrLength, &copied);
960 int testStrLength = static_cast<int>(std::char_traits<char16_t>::length(testStr));
961 char16_t buffer[testStrLength];
966 ret = napi_get_value_string_utf16(env, result, buffer, testStrLength, &copied);
1182 int testStrLength = static_cast<int>(std::char_traits<char16_t>::length(testStr));
1185 ExpectCheckCall(napi_create_string_utf16(env, testStr, testStrLength, &result));
1515 int testStrLength = static_cast<int>(std::char_traits<char16_t>::length(testStr));
1518 ExpectCheckCall(napi_create_string_utf16(env, testStr, testStrLength, &result));
2013 int testStrLength = static_cast<int>(std::char_traits<char16_t>::length(testStr));
2015 ExpectCheckCall(napi_create_string_utf16(env, testStr, testStrLength, &result));