Home
last modified time | relevance | path

Searched refs:write_buf (Results 1 – 16 of 16) sorted by relevance

/external/chromium_org/net/socket/
Dssl_server_socket_unittest.cc273 scoped_refptr<IOBuffer> write_buf = new StringIOBuffer(kTestData); in TEST() local
278 server.Write(write_buf.get(), kTestDataSize, CompletionCallback()); in TEST()
292 written = client.Write(write_buf.get(), kTestDataSize, CompletionCallback()); in TEST()
424 scoped_refptr<StringIOBuffer> write_buf = in TEST_F() local
433 write_buf.get(), write_buf->size(), write_callback.callback()); in TEST_F()
445 while (read_buf->BytesConsumed() < write_buf->size()) { in TEST_F()
453 EXPECT_EQ(write_buf->size(), read_buf->BytesConsumed()); in TEST_F()
455 EXPECT_EQ(0, memcmp(write_buf->data(), read_buf->data(), write_buf->size())); in TEST_F()
458 write_buf = new StringIOBuffer("hello123"); in TEST_F()
463 write_buf.get(), write_buf->size(), write_callback.callback()); in TEST_F()
[all …]
Dunix_domain_client_socket_posix_unittest.cc94 scoped_refptr<DrainableIOBuffer> write_buf( in WriteSynchronously() local
99 retry_count > 0 && write_buf->BytesRemaining() > 0; in WriteSynchronously()
101 int rv = socket->Write(write_buf.get(), in WriteSynchronously()
102 write_buf->BytesRemaining(), in WriteSynchronously()
104 EXPECT_GE(write_buf->BytesRemaining(), rv); in WriteSynchronously()
110 write_buf->DidConsume(rv); in WriteSynchronously()
112 EXPECT_LE(0, write_buf->BytesRemaining()); in WriteSynchronously()
113 return write_buf->BytesConsumed(); in WriteSynchronously()
Ddeterministic_socket_data_unittest.cc184 scoped_refptr<IOBuffer> write_buf(new IOBuffer(len)); in ReentrantWriteCallback() local
185 memcpy(write_buf->data(), data, len); in ReentrantWriteCallback()
188 write_buf.get(), in ReentrantWriteCallback()
479 scoped_refptr<IOBuffer> write_buf(new IOBuffer(kLen1)); in TEST_F() local
480 memcpy(write_buf->data(), kMsg1, kLen1); in TEST_F()
483 write_buf.get(), in TEST_F()
/external/chromium_org/net/server/
Dhttp_server.cc65 bool writing_in_progress = !connection->write_buf()->IsEmpty(); in SendRaw()
66 if (connection->write_buf()->Append(data) && !writing_in_progress) in SendRaw()
127 connection->write_buf()->set_max_buffer_size(size); in SetSendBufferSize()
275 HttpConnection::QueuedWriteIOBuffer* write_buf = connection->write_buf(); in DoWriteLoop() local
276 while (rv == OK && write_buf->GetSizeToWrite() > 0) { in DoWriteLoop()
278 write_buf, in DoWriteLoop()
279 write_buf->GetSizeToWrite(), in DoWriteLoop()
303 connection->write_buf()->DidConsume(rv); in HandleWriteResult()
Dhttp_connection.h119 QueuedWriteIOBuffer* write_buf() const { return write_buf_.get(); } in write_buf() function
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/
Dmem_fs_node_test.cc328 const char write_buf[] = "hello world"; in TEST() local
336 ASSERT_EQ(0, handle.Write(write_buf, strlen(write_buf), &byte_count)); in TEST()
337 ASSERT_EQ(byte_count, strlen(write_buf)); in TEST()
346 ASSERT_EQ(0, handle.Write(write_buf, strlen(write_buf), &byte_count)); in TEST()
347 ASSERT_EQ(byte_count, strlen(write_buf)); in TEST()
355 ASSERT_EQ(EACCES, handle.Write(write_buf, strlen(write_buf), &byte_count)); in TEST()
/external/e2fsprogs/lib/ext2fs/
Dext_attr.c84 char *write_buf; in ext2fs_write_ext_attr2() local
91 write_buf = buf; in ext2fs_write_ext_attr2()
94 write_buf = (char *) inbuf; in ext2fs_write_ext_attr2()
96 retval = io_channel_write_blk64(fs->io, block, 1, write_buf); in ext2fs_write_ext_attr2()
/external/libnfc-nxp/src/
DphFriNfc_TopazDynamicMap.c1289 uint8_t write_buf[] = {0x00}; in phFriNfc_Tpz_H_ProWrResp() local
1320 result = phFriNfc_Tpz_H_NxpWrite (psNdefMap, write_buf, in phFriNfc_Tpz_H_ProWrResp()
1321 sizeof (write_buf)); in phFriNfc_Tpz_H_ProWrResp()
1539 write_buf[write_index] = PH_FRINFC_TOPAZ_CC_BYTE0; in phFriNfc_Tpz_H_ProWrResp()
1550 result = phFriNfc_Tpz_H_NxpWrite(psNdefMap, write_buf, in phFriNfc_Tpz_H_ProWrResp()
1576 write_buf[write_index] = PH_FRINFC_TOPAZ_CC_BYTE0; in phFriNfc_Tpz_H_ProWrResp()
1584 result = phFriNfc_Tpz_H_NxpWrite(psNdefMap, write_buf, in phFriNfc_Tpz_H_ProWrResp()
1636 uint8_t write_buf[TOPAZ_WRITE_8_DATA_LENGTH]; in phFriNfc_Tpz_H_UpdateNdefTypeField() local
1640 (void)memcpy ((void *)write_buf, (void *) in phFriNfc_Tpz_H_UpdateNdefTypeField()
1644 write_buf[ps_tpz_info->ByteNumber] = PH_FRINFC_TOPAZ_NDEF_T; in phFriNfc_Tpz_H_UpdateNdefTypeField()
[all …]
/external/chromium_org/remoting/protocol/
Dfake_authenticator.cc43 scoped_refptr<net::IOBuffer> write_buf = new net::IOBuffer(1); in SecureAndAuthenticate() local
44 write_buf->data()[0] = 0; in SecureAndAuthenticate()
46 write_buf.get(), 1, in SecureAndAuthenticate()
/external/chromium_org/content/browser/appcache/
Dappcache_disk_cache_unittest.cc153 scoped_refptr<net::IOBuffer> write_buf(new net::WrappedIOBuffer(kData)); in TEST_F() local
154 entry1->Write(0, 0, write_buf.get(), kDataLen, completion_callback_); in TEST_F()
160 entry2->Write(0, 0, write_buf.get(), kDataLen, completion_callback_); in TEST_F()
/external/clang/test/CodeGen/
D2003-11-19-BitFieldArray.c4 int write_buf; member
/external/valgrind/main/coregrind/
Dvgdb.c384 Bool write_buf(int fd, char* buf, int size, const char* desc, Bool notify) in write_buf() function
445 return write_buf(to_pid, buf, nrread, "to_pid", /* notify */ True); in read_from_gdb_write_to_pid()
469 return write_buf(to_gdb, buf, nrread, "to_gdb", /* notify */ False); in read_from_pid_write_to_gdb()
674 write_buf(sigusr1_fd, &control_c, 1, in received_signal()
961 write_buf(to_pid, buf, 1, "write \\003 to wake up", /* notify */ True); in standalone_send_commands()
985 write_buf(to_pid, hexcommand, strlen(hexcommand), in standalone_send_commands()
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/
Dfuse.h244 int (*write_buf)(const char*, member
/external/chromium_org/jingle/glue/
Dfake_ssl_client_socket_unittest.cc170 scoped_refptr<net::IOBuffer> write_buf( in RunSuccessfulHandshakeTest() local
173 fake_ssl_client_socket.Write(write_buf.get(), in RunSuccessfulHandshakeTest()
/external/chromium_org/net/spdy/
Dspdy_proxy_client_socket_unittest.cc1235 scoped_refptr<IOBufferWithSize> write_buf(CreateBuffer(kMsg1, kLen1)); in TEST_P() local
1239 write_buf.get(), write_buf->size(), write_callback_.callback())); in TEST_P()
1368 scoped_refptr<IOBufferWithSize> write_buf(CreateBuffer(kMsg1, kLen1)); in TEST_P() local
1372 write_buf.get(), write_buf->size(), write_callback_.callback())); in TEST_P()
/external/opencv/cxcore/src/
Dcxpersistence.cpp4489 char* write_buf = 0; in icvWriteGraph() local
4543 CV_CALL( write_buf = (char*)cvAlloc( write_buf_size )); in icvWriteGraph()
4555 char* src_ptr = write_buf; in icvWriteGraph()
4595 cvWriteRawData( fs, write_buf, write_count, dt ); in icvWriteGraph()
4597 src_ptr = write_buf; in icvWriteGraph()
4604 cvWriteRawData( fs, write_buf, write_count, dt ); in icvWriteGraph()
4623 cvFree( &write_buf ); in icvWriteGraph()