Lines Matching refs:content_buf
38 std::vector<char> content_buf(length_bytes); in TEST_F() local
40 4u, FPDFAttachment_GetFile(attachment, content_buf.data(), length_bytes)); in TEST_F()
41 EXPECT_EQ(std::string("test"), std::string(content_buf.data(), 4)); in TEST_F()
68 content_buf.clear(); in TEST_F()
69 content_buf.resize(length_bytes); in TEST_F()
70 ASSERT_EQ(5869u, FPDFAttachment_GetFile(attachment, content_buf.data(), in TEST_F()
77 reinterpret_cast<uint8_t*>(content_buf.data()), length_bytes); in TEST_F()
122 std::vector<char> content_buf(length_bytes); in TEST_F() local
124 6u, FPDFAttachment_GetFile(attachment, content_buf.data(), length_bytes)); in TEST_F()
125 EXPECT_EQ(std::string(kContents1), std::string(content_buf.data(), 6)); in TEST_F()
146 content_buf.clear(); in TEST_F()
147 content_buf.resize(length_bytes); in TEST_F()
149 6u, FPDFAttachment_GetFile(attachment, content_buf.data(), length_bytes)); in TEST_F()
150 EXPECT_EQ(std::string(kContents2), std::string(content_buf.data(), 6)); in TEST_F()
189 std::vector<char> content_buf(length_bytes); in TEST_F() local
190 ASSERT_EQ(12u, FPDFAttachment_GetFile(attachment, content_buf.data(), in TEST_F()
192 EXPECT_EQ(std::string(kContents), std::string(content_buf.data(), 12)); in TEST_F()