Home
last modified time | relevance | path

Searched refs:testString (Results 1 – 3 of 3) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
Dheap_tracker_test.cpp537 std::string testString = "Hello!"; in HWTEST_F_L0() local
538 int strSize = testString.size(); in HWTEST_F_L0()
539 bool isFileStream = testFileStream.WriteChunk(testString.data(), strSize); in HWTEST_F_L0()
545 testString = "Hello!"; in HWTEST_F_L0()
546 strSize = testString.size(); in HWTEST_F_L0()
547 isFileStream = tmpFileStream.WriteChunk(testString.data(), strSize); in HWTEST_F_L0()
557 testString = "Hello!"; in HWTEST_F_L0()
558 strSize = testString.size(); in HWTEST_F_L0()
559 isFileStream = fileStream.WriteChunk(testString.data(), strSize); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/tests/
Dtemplate_string_test.cpp72 JSHandle<EcmaString> testString = factory->NewFromASCII("bar2bazJavaScriptbaz"); in HWTEST_F_L0() local
114 …StringAccessor::StringsAreEqual(reinterpret_cast<EcmaString *>(result.GetRawData()), *testString)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/napi/test/
Djsnapi_tests.cpp215 Local<StringRef> testString = StringRef::NewFromUtf8(vm_, test.c_str()); in HWTEST_F_L0() local
217 EXPECT_EQ(testString->Utf8Length(), 12); // 12 : length of testString("Hello World") in HWTEST_F_L0()
219 EXPECT_EQ(testString->WriteUtf8(buffer, 12), 12); // 12 : length of testString("Hello World") in HWTEST_F_L0()
228 Local<StringRef> testString = StringRef::NewFromUtf8(vm_, test.c_str()); in HWTEST_F_L0() local
230 EXPECT_EQ(testString->Utf8Length(), 4); // 4 : length of testString("年") in HWTEST_F_L0()
232 EXPECT_EQ(testString->WriteUtf8(buffer, 4), 4); // 4 : length of testString("年") in HWTEST_F_L0()