Lines Matching refs:fixed_buffer

43   unsigned short fixed_buffer[128];  in TEST_F()  local
44 memset(fixed_buffer, 0xbd, sizeof(fixed_buffer)); in TEST_F()
47 int num_chars = FPDFText_GetText(textpage, 0, 128, fixed_buffer); in TEST_F()
50 EXPECT_TRUE(check_unsigned_shorts(expected, fixed_buffer, sizeof(expected))); in TEST_F()
120 memset(fixed_buffer, 0xbd, sizeof(fixed_buffer)); in TEST_F()
122 fixed_buffer, 1)); in TEST_F()
123 EXPECT_TRUE(check_unsigned_shorts(expected + 4, fixed_buffer, 1)); in TEST_F()
124 EXPECT_EQ(0xbdbd, fixed_buffer[1]); in TEST_F()
126 memset(fixed_buffer, 0xbd, sizeof(fixed_buffer)); in TEST_F()
128 fixed_buffer, 9)); in TEST_F()
129 EXPECT_TRUE(check_unsigned_shorts(expected + 4, fixed_buffer, 9)); in TEST_F()
130 EXPECT_EQ(0xbdbd, fixed_buffer[9]); in TEST_F()
132 memset(fixed_buffer, 0xbd, sizeof(fixed_buffer)); in TEST_F()
134 fixed_buffer, 128)); in TEST_F()
135 EXPECT_TRUE(check_unsigned_shorts(expected + 4, fixed_buffer, 9)); in TEST_F()
136 EXPECT_EQ(0u, fixed_buffer[9]); in TEST_F()
137 EXPECT_EQ(0xbdbd, fixed_buffer[10]); in TEST_F()
292 unsigned short fixed_buffer[128]; in TEST_F() local
297 memset(fixed_buffer, 0xbd, sizeof(fixed_buffer)); in TEST_F()
298 EXPECT_EQ(1, FPDFLink_GetURL(pagelink, 0, fixed_buffer, 1)); in TEST_F()
299 EXPECT_TRUE(check_unsigned_shorts(expected_url, fixed_buffer, 1)); in TEST_F()
300 EXPECT_EQ(0xbdbd, fixed_buffer[1]); in TEST_F()
303 memset(fixed_buffer, 0xbd, sizeof(fixed_buffer)); in TEST_F()
305 FPDFLink_GetURL(pagelink, 0, fixed_buffer, expected_len - 1)); in TEST_F()
307 check_unsigned_shorts(expected_url, fixed_buffer, expected_len - 1)); in TEST_F()
308 EXPECT_EQ(0xbdbd, fixed_buffer[expected_len - 1]); in TEST_F()
311 memset(fixed_buffer, 0xbd, sizeof(fixed_buffer)); in TEST_F()
313 FPDFLink_GetURL(pagelink, 0, fixed_buffer, expected_len)); in TEST_F()
314 EXPECT_TRUE(check_unsigned_shorts(expected_url, fixed_buffer, expected_len)); in TEST_F()
315 EXPECT_EQ(0u, fixed_buffer[expected_len - 1]); in TEST_F()
316 EXPECT_EQ(0xbdbd, fixed_buffer[expected_len]); in TEST_F()
319 memset(fixed_buffer, 0xbd, sizeof(fixed_buffer)); in TEST_F()
321 FPDFLink_GetURL(pagelink, 0, fixed_buffer, 128)); in TEST_F()
322 EXPECT_TRUE(check_unsigned_shorts(expected_url, fixed_buffer, expected_len)); in TEST_F()
323 EXPECT_EQ(0u, fixed_buffer[expected_len - 1]); in TEST_F()
324 EXPECT_EQ(0xbdbd, fixed_buffer[expected_len]); in TEST_F()