Lines Matching refs:ReadString
608 TEST_1D(CodedStreamTest, ReadString, kBlockSizes) {
616 EXPECT_TRUE(coded_input.ReadString(&str, strlen(kRawBytes)));
623 // Check to make sure ReadString doesn't crash on impossibly large strings.
632 EXPECT_FALSE(coded_input.ReadString(&str, 1 << 30));
642 EXPECT_FALSE(coded_input.ReadString(&str, 1 << 30));
649 EXPECT_FALSE(coded_input.ReadString(&str, 1 << 30));
669 EXPECT_TRUE(coded_input.ReadString(&str, strlen("<Before skipping>")));
672 EXPECT_TRUE(coded_input.ReadString(&str, strlen("<After skipping>")));
952 EXPECT_TRUE(coded_input.ReadString(&str, 16));
958 EXPECT_FALSE(coded_input.ReadString(&str, 1));
967 EXPECT_TRUE(coded_input.ReadString(&str, 16));
982 EXPECT_TRUE(coded_input.ReadString(&str, 16));
1088 EXPECT_TRUE(coded_input.ReadString(&str, 512));
1089 EXPECT_TRUE(coded_input.ReadString(&str, 1024));