Home | History | Annotate | Download | only in disk_cache

Lines Matching defs:buffer1

239   scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize));
240 CacheTestFillBuffer(buffer1->data(), kSize, false);
241 ASSERT_EQ(kSize, file_util::WriteFile(filename, buffer1->data(), kSize));
246 ASSERT_EQ(0, WriteData(entry, 0, 20000, buffer1, 0, false));
252 EXPECT_EQ(0, memcmp(buffer1->data(), buffer2->data(), kSize));
507 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize));
508 memset(buffer1->data(), 0, kSize);
509 base::strlcpy(buffer1->data(), "And the data to save", kSize);
510 EXPECT_EQ(kSize, WriteData(entry, 0, 0, buffer1, kSize, false));
520 EXPECT_STREQ(buffer1->data(), buffer2->data());
951 scoped_refptr<net::IOBuffer> buffer1(new net::IOBuffer(kSize));
952 memset(buffer1->data(), 0, kSize);
953 base::strlcpy(buffer1->data(), "And the data to save", kSize);
954 EXPECT_EQ(kSize, WriteData(entry1, 0, 0, buffer1, kSize, false));
957 EXPECT_EQ(kSize, ReadData(entry1, 0, 0, buffer1, kSize));
2077 char buffer1[kSize];
2079 memset(buffer1, 't', kSize);
2081 EXPECT_TRUE(file->Write(buffer1, kSize, 0));
2083 EXPECT_EQ(0, memcmp(buffer1, buffer2, kSize));