Lines Matching defs:buffer1
195 scoped_refptr<net::IOBuffer> buffer1 = new net::IOBuffer(kSize);
196 CacheTestFillBuffer(buffer1->data(), kSize, false);
197 ASSERT_EQ(kSize, file_util::WriteFile(filename, buffer1->data(), kSize));
202 ASSERT_EQ(0, entry->WriteData(0, 20000, buffer1, 0, NULL, false));
208 EXPECT_EQ(0, memcmp(buffer1->data(), buffer2->data(), kSize));
366 scoped_refptr<net::IOBuffer> buffer1 = new net::IOBuffer(kSize);
367 memset(buffer1->data(), 0, kSize);
368 base::strlcpy(buffer1->data(), "And the data to save", kSize);
369 EXPECT_EQ(kSize, entry1->WriteData(0, 0, buffer1, kSize, NULL, false));
379 EXPECT_STREQ(buffer1->data(), buffer2->data());
404 scoped_refptr<net::IOBuffer> buffer1 = new net::IOBuffer(kSize);
405 memset(buffer1->data(), 0, kSize);
406 base::strlcpy(buffer1->data(), "And the data to save", kSize);
407 EXPECT_EQ(kSize, entry1->WriteData(0, 0, buffer1, kSize, NULL, false));
442 scoped_refptr<net::IOBuffer> buffer1 = new net::IOBuffer(kSize);
443 memset(buffer1->data(), 0, kSize);
444 base::strlcpy(buffer1->data(), "And the data to save", kSize);
445 EXPECT_EQ(kSize, entry1->WriteData(0, 0, buffer1, kSize, NULL, false));
448 EXPECT_EQ(kSize, entry1->ReadData(0, 0, buffer1, kSize, NULL));
750 scoped_refptr<net::IOBuffer> buffer1 = new net::IOBuffer(kSize);
751 memset(buffer1->data(), 0, kSize);
752 base::strlcpy(buffer1->data(), "And the data to save", kSize);
753 EXPECT_EQ(kSize, entry1->WriteData(0, 0, buffer1, kSize, NULL, false));
756 EXPECT_EQ(kSize, entry1->ReadData(0, 0, buffer1, kSize, NULL));