Home
last modified time | relevance | path

Searched refs:WriteData (Results 1 – 25 of 43) sorted by relevance

12

/external/chromium/net/disk_cache/
Dentry_unittest.cc84 EXPECT_EQ(10, entry->WriteData(0, 0, buffer1, kSize1, NULL, false)); in InternalSyncIOBackground()
96 EXPECT_EQ(5000, entry->WriteData(1, 1500, buffer2, kSize2, NULL, false)); in InternalSyncIOBackground()
106 EXPECT_EQ(8192, entry->WriteData(1, 0, buffer3, 8192, NULL, false)); in InternalSyncIOBackground()
111 EXPECT_EQ(0, entry->WriteData(0, 0, NULL, 0, NULL, true)); in InternalSyncIOBackground()
112 EXPECT_EQ(0, entry->WriteData(1, 0, NULL, 0, NULL, true)); in InternalSyncIOBackground()
155 EXPECT_EQ(0, WriteData(entry, 0, 15 * 1024, NULL, 0, false)); in InternalAsyncIO()
156 EXPECT_EQ(0, WriteData(entry, 1, 15 * 1024, NULL, 0, false)); in InternalAsyncIO()
193 int ret = entry->WriteData(0, 0, buffer1, kSize1, &callback2, false); in InternalAsyncIO()
209 ret = entry->WriteData(1, 1500, buffer2, kSize2, &callback4, true); in InternalAsyncIO()
242 ret = entry->WriteData(1, 0, buffer3, 8192, &callback10, true); in InternalAsyncIO()
[all …]
Dbackend_unittest.cc246 ASSERT_EQ(0, WriteData(entry, 0, 20000, buffer1, 0, false)); in TEST_F()
332 rv = entry->WriteData(0, 0, buffer, kSize, &cb, false); in TEST_F()
378 EXPECT_EQ(cache_size / 10, WriteData(entry, 0, 0, buffer, cache_size / 10, in BackendSetSize()
381 EXPECT_EQ(net::ERR_FAILED, WriteData(entry, 1, 0, buffer, cache_size / 5, in BackendSetSize()
386 EXPECT_EQ(cache_size / 5, WriteData(entry, 1, 0, buffer, cache_size / 5, in BackendSetSize()
391 EXPECT_EQ(cache_size * 3 / 4, WriteData(entry, 0, 0, buffer, in BackendSetSize()
401 EXPECT_EQ(cache_size / 10, WriteData(entry, 0, 0, buffer, cache_size / 10, in BackendSetSize()
406 EXPECT_EQ(cache_size / 10, WriteData(entry2, 0, 0, buffer, cache_size / 10, in BackendSetSize()
541 EXPECT_EQ(kSize, WriteData(entry, 0, 0, buffer1, kSize, false)); in BackendValidEntry()
579 EXPECT_EQ(kSize, WriteData(entry, 0, 0, buffer, kSize, false)); in BackendInvalidEntry()
[all …]
Din_flight_backend_io.h66 void WriteData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf,
170 void WriteData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf,
Ddisk_cache_perftest.cc73 int ret = cache_entry->WriteData(0, 0, buffer1, kSize1, &callback, false); in TimeWrite()
79 ret = cache_entry->WriteData(1, 0, buffer2, entry.data_len, &callback, in TimeWrite()
Dsparse_control.cc373 int rv = entry_->WriteData(kSparseIndex, 0, buf, sizeof(sparse_header_), NULL, in CreateSparseEntry()
480 int rv = child_->WriteData(kSparseIndex, 0, buf, sizeof(child_data_), in CloseChild()
547 int rv = entry_->WriteData(kSparseIndex, sizeof(sparse_header_), buf, len, in WriteSparseData()
651 int rv = child_->WriteData(kSparseIndex, 0, buf, sizeof(child_data_), in InitChildData()
Ddisk_cache_test_base.cc155 int DiskCacheTestWithCache::WriteData(disk_cache::Entry* entry, int index, in WriteData() function in DiskCacheTestWithCache
159 int rv = entry->WriteData(index, offset, buf, len, &cb, truncate); in WriteData()
Din_flight_backend_io.cc137 void BackendIO::WriteData(EntryImpl* entry, int index, int offset, in WriteData() function in disk_cache::BackendIO
393 void InFlightBackendIO::WriteData(EntryImpl* entry, int index, int offset, in WriteData() function in disk_cache::InFlightBackendIO
398 operation->WriteData(entry, index, offset, buf, buf_len, truncate); in WriteData()
Ddisk_cache_test_base.h103 int WriteData(disk_cache::Entry* entry, int index, int offset,
Ddisk_cache.h190 virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len,
Dmem_entry_impl.h103 virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len,
Dstress_cache.cc154 rv = entries[slot]->WriteData(0, 0, buffer, size, &cb, truncate); in StressTheCache()
Dentry_impl.h147 virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len,
/external/chromium/base/
Dpickle_unittest.cc75 EXPECT_TRUE(pickle.WriteData(testdata, testdatalen)); in TEST()
217 pickle.WriteData(data_ptr, in TEST()
226 pickle.WriteData(data_ptr, static_cast<int>(unit - sizeof(uint32))); in TEST()
232 pickle.WriteData(data_ptr, 1); in TEST()
276 source.WriteData(str.c_str(), 100000); in TEST()
302 EXPECT_TRUE(pickle.WriteData(NULL, 0)); in TEST()
Dpickle.h117 bool WriteData(const char* data, int length);
/external/chromium/net/url_request/
Dview_cache_helper_unittest.cc51 int rv = entry->WriteData(0, 0, buf, len, &cb, true); in WriteHeaders()
55 void WriteData(disk_cache::Entry* entry, int index, const std::string data) { in WriteData() function
64 int rv = entry->WriteData(index, 0, buf, len, &cb, true); in WriteData()
81 WriteData(entry, 1, data1); in WriteToEntry()
82 WriteData(entry, 2, data2); in WriteToEntry()
/external/chromium/webkit/glue/
Dglue_serialize.cc70 inline void WriteData(const void* data, int length, SerializeObject* obj) { in WriteData() function
71 obj->pickle.WriteData(static_cast<const char*>(data), length); in WriteData()
111 WriteData(&data, sizeof(double), obj); in WriteReal()
236 WriteData(element.data.data(), static_cast<int>(element.data.size()), in WriteFormData()
Dnpruntime_util.cc24 return pickle->WriteData(string, strlen(string) + 1); in SerializeNPIdentifier()
Dwebcursor.cc128 if (!pickle->WriteData(data, custom_data_.size())) in Serialize()
/external/chromium/net/data/cache_tests/list_loop/
Dcontents.txt198 entry->WriteData(0, 0, buffer, 4, NULL, false);
208 entry->WriteData(0, 0, buffer, 4, NULL, false);
/external/chromium/chrome/common/
Dcommon_param_traits_unittest.cc106 bad_msg.WriteData(fixed_data, fixed_data_size); in TEST()
111 bad_msg.WriteData(bogus_pixels.get(), bogus_pixels_size); in TEST()
/external/chromium/chrome/browser/safe_browsing/
Dmalware_details_unittest.cc69 int rv = entry->WriteData(0, 0, buf, len, &cb, true); in WriteHeaders()
73 void WriteData(disk_cache::Entry* entry, const std::string data) { in WriteData() function
82 int rv = entry->WriteData(1, 0, buf, len, &cb, true); in WriteData()
98 WriteData(entry, data); in WriteToEntry()
/external/chromium/chrome/browser/extensions/
Duser_script_master.cc248 pickle.WriteData(contents.data(), contents.length()); in Serialize()
252 pickle.WriteData(contents.data(), contents.length()); in Serialize()
/external/chromium/net/data/cache_tests/dirty_entry5/
Dcontents.txt158 EXPECT_EQ(kSize, WriteData(entry, 0, 0, buf, kSize, false));
/external/chromium/net/tools/dump_cache/
Dcache_dumper.cc25 return entry->WriteData(index, offset, buf, buf_len, callback, false); in WriteEntry()
/external/chromium/net/http/
Ddisk_cache_based_ssl_host_info.cc219 return entry_->WriteData(0 /* index */, 0 /* offset */, write_buffer_, in DoWrite()

12