Lines Matching refs:stringValue
2345 …std::unique_ptr<StringSetting> stringValue = StringSetting::AllocUnique(6, C2ConstMemoryBlock<char… in TEST_F() local
2346 stringValue = StringSetting::AllocUnique(6, initValue); in TEST_F()
2347 … static_assert(std::is_same<decltype(stringValue->m.value), char[]>::value, "should be char[]"); in TEST_F()
2348 EXPECT_EQ(0, memcmp(stringValue->m.value, "ABCD\0", 6)); in TEST_F()
2349 EXPECT_EQ(6u, stringValue->flexCount()); in TEST_F()
2350 std::vector<C2FieldDescriptor> fields = stringValue->FieldList(); in TEST_F()
2356 stringValue = StringSetting::AllocUnique(3, C2ConstMemoryBlock<char>(initValue)); in TEST_F()
2357 EXPECT_EQ(0, memcmp(stringValue->m.value, "AB", 3)); in TEST_F()
2358 EXPECT_EQ(3u, stringValue->flexCount()); in TEST_F()
2360 stringValue = StringSetting::AllocUnique(11, "initValue"); in TEST_F()
2361 EXPECT_EQ(0, memcmp(stringValue->m.value, "initValue\0", 11)); in TEST_F()
2362 EXPECT_EQ(11u, stringValue->flexCount()); in TEST_F()
2364 stringValue = StringSetting::AllocUnique(initValue); in TEST_F()
2365 EXPECT_EQ(0, memcmp(stringValue->m.value, "ABCD", 5)); in TEST_F()
2366 EXPECT_EQ(5u, stringValue->flexCount()); in TEST_F()
2368 stringValue = StringSetting::AllocUnique({ 'A', 'B', 'C', 'D' }); in TEST_F()
2369 EXPECT_EQ(0, memcmp(stringValue->m.value, "ABC", 4)); in TEST_F()
2370 EXPECT_EQ(4u, stringValue->flexCount()); in TEST_F()