/external/chromium_org/media/base/ |
seekable_buffer_unittest.cc | 44 uint8 write_buffer_[kDataSize]; member in class:media::SeekableBufferTest 63 int bytes_copied = buffer_.Peek(write_buffer_, copy_size); 65 EXPECT_EQ(0, memcmp(write_buffer_, data_ + read_position, bytes_copied)); 69 int bytes_read = buffer_.Read(write_buffer_, read_size); 71 EXPECT_EQ(0, memcmp(write_buffer_, data_ + read_position, bytes_read)); 96 EXPECT_EQ(kReadSize, buffer_.Read(write_buffer_, kReadSize)); 99 EXPECT_EQ(0, memcmp(write_buffer_, data_ + read_position, kReadSize)); 109 EXPECT_EQ(kReadSize, buffer_.Peek(write_buffer_, kReadSize)); 111 EXPECT_EQ(0, memcmp(write_buffer_, data_ + read_position, kReadSize)); 114 EXPECT_EQ(kReadSize, buffer_.Read(write_buffer_, kReadSize)) [all...] |
/external/chromium_org/device/serial/ |
data_source_unittest.cc | 43 write_buffer_.reset(); 72 if (!write_buffer_) { 76 ASSERT_TRUE(write_buffer_); 77 ASSERT_GE(write_buffer_->GetSize(), static_cast<uint32_t>(data.size())); 78 memcpy(write_buffer_->GetData(), data.data(), data.size()); 80 write_buffer_->DoneWithError(static_cast<uint32_t>(data.size()), error); 82 write_buffer_->Done(static_cast<uint32_t>(data.size())); 83 write_buffer_.reset(); 107 write_buffer_ = buffer.Pass(); 122 scoped_ptr<WritableBuffer> write_buffer_; member in class:device::DataSourceTest [all...] |
/external/chromium_org/mojo/system/ |
raw_channel.cc | 161 DCHECK(!write_buffer_); 183 DCHECK(!write_buffer_); 184 write_buffer_.reset(new WriteBuffer(GetSerializedPlatformHandleSize())); 190 write_buffer_.reset(); 215 LOG_IF(WARNING, !write_buffer_->message_queue_.empty()) 224 OnShutdownNoLock(read_buffer_.Pass(), write_buffer_.Pass()); 235 if (!write_buffer_->message_queue_.empty()) { 241 DCHECK_EQ(write_buffer_->data_offset_, 0u); 266 return write_buffer_->message_queue_.empty(); 429 DCHECK_EQ(write_stopped_, write_buffer_->message_queue_.empty()) [all...] |
raw_channel.h | 219 return write_buffer_.get(); 318 scoped_ptr<WriteBuffer> write_buffer_; member in class:mojo::system::RawChannel
|
/external/chromium_org/chrome/test/chromedriver/net/ |
websocket.cc | 63 write_buffer_(new net::DrainableIOBuffer(new net::IOBuffer(0), 0)), 144 if (!write_buffer_->BytesRemaining()) 159 write_buffer_->DidConsume(code); 164 if (!write_buffer_->BytesRemaining()) { 167 write_buffer_ = new net::DrainableIOBuffer( 173 socket_->Write(write_buffer_.get(), 174 write_buffer_->BytesRemaining(),
|
websocket.h | 74 scoped_refptr<net::DrainableIOBuffer> write_buffer_; member in class:WebSocket
|
/external/chromium_org/google_apis/gcm/base/ |
socket_stream.cc | 216 write_buffer_(new net::DrainableIOBuffer(io_buffer_.get(), 230 if (next_pos_ == write_buffer_->size()) 233 *data = write_buffer_->data() + next_pos_; 234 *size = write_buffer_->size() - next_pos_; 235 next_pos_ = write_buffer_->size(); 265 socket_->Write(write_buffer_.get(), 322 if (write_buffer_->BytesConsumed() + result < next_pos_) { 325 write_buffer_->DidConsume(result); 331 write_buffer_->SetOffset(0);
|
socket_stream.h | 187 const scoped_refptr<net::DrainableIOBuffer> write_buffer_; member in class:gcm::SocketOutputStream 190 // Next(..) call. 0 <= write_buffer_.BytesConsumed() <= next_pos_
|
/external/chromium_org/content/browser/renderer_host/pepper/ |
pepper_tcp_socket.cc | 136 write_buffer_base_.get() || write_buffer_.get()) { 202 if (write_buffer_base_.get() || write_buffer_.get()) { 216 write_buffer_ = 491 DCHECK(write_buffer_.get()); 496 write_buffer_->DidConsume(net_result); 497 if (write_buffer_->BytesRemaining() > 0) { 508 write_buffer_->BytesConsumed())); 513 write_buffer_ = NULL; 529 DCHECK(write_buffer_.get()); 530 DCHECK_GT(write_buffer_->BytesRemaining(), 0) [all...] |
pepper_tcp_socket_message_filter.cc | 274 read_buffer_.get() || write_buffer_base_.get() || write_buffer_.get()) { 364 if (write_buffer_base_.get() || write_buffer_.get()) 375 write_buffer_ = 622 DCHECK(write_buffer_.get()); 623 DCHECK_GT(write_buffer_->BytesRemaining(), 0); 630 write_buffer_.get(), 631 write_buffer_->BytesRemaining(), 638 write_buffer_.get(), 639 write_buffer_->BytesRemaining(), 819 DCHECK(write_buffer_.get()) [all...] |
pepper_tcp_socket_message_filter.h | 208 scoped_refptr<net::DrainableIOBuffer> write_buffer_; member in class:content::PepperTCPSocketMessageFilter
|
/external/chromium_org/content/browser/renderer_host/p2p/ |
socket_host_tcp.cc | 365 if (write_buffer_.get()) { 372 write_buffer_ = buffer; 377 while (write_buffer_.get() && state_ == STATE_OPEN && !write_pending_) { 379 write_buffer_.get(), 380 write_buffer_->BytesRemaining(), 396 DCHECK(write_buffer_.get()); 398 write_buffer_->DidConsume(result); 399 if (write_buffer_->BytesRemaining() == 0) { 402 write_buffer_ = NULL; 404 write_buffer_ = write_queue_.front() [all...] |
socket_host_tcp.h | 90 scoped_refptr<net::DrainableIOBuffer> write_buffer_; member in class:content::P2PSocketHostTcpBase
|
/external/chromium_org/jingle/glue/ |
channel_socket_adapter.cc | 95 write_buffer_ = buffer; 136 write_buffer_ = NULL; 178 int result = channel_->SendPacket(write_buffer_->data(), 187 write_buffer_ = NULL;
|
channel_socket_adapter.h | 74 scoped_refptr<net::IOBuffer> write_buffer_; member in class:jingle_glue::TransportChannelSocketAdapter
|
pseudotcp_adapter.cc | 89 scoped_refptr<net::IOBuffer> write_buffer_; member in class:jingle_glue::PseudoTcpAdapter::Core 166 write_buffer_ = buffer; 181 write_buffer_ = buffer; 214 write_buffer_ = NULL; 275 int result = pseudo_tcp_.Send(write_buffer_->data(), write_buffer_size_); 294 write_buffer_ = NULL; 456 write_buffer_ = NULL;
|
/external/chromium_org/net/http/ |
disk_cache_based_quic_server_info.h | 99 scoped_refptr<IOBuffer> write_buffer_; member in class:net::DiskCacheBasedQuicServerInfo
|
disk_cache_based_quic_server_info.cc | 257 write_buffer_ = new IOBuffer(new_data_.size()); 258 memcpy(write_buffer_->data(), new_data_.data(), new_data_.size()); 263 write_buffer_.get(),
|
/external/chromium_org/chrome/browser/net/ |
network_stats.cc | 178 write_buffer_ = NULL; 187 write_buffer_ = NULL; 457 if (write_buffer_.get() || !socket_.get() || 462 write_buffer_ = new net::DrainableIOBuffer(buffer.get(), buffer->size()); 465 write_buffer_.get(), 466 write_buffer_->BytesRemaining(), 481 if (result < 0 || !socket_.get() || write_buffer_.get() == NULL) { 489 write_buffer_->DidConsume(bytes_sent); 490 DCHECK_EQ(write_buffer_->BytesRemaining(), 0); 492 write_buffer_ = NULL [all...] |
network_stats.h | 167 // And reset |write_buffer_|. 264 scoped_refptr<net::DrainableIOBuffer> write_buffer_; member in class:chrome_browser_net::NetworkStats
|
/external/chromium_org/net/server/ |
http_server_unittest.cc | 93 write_buffer_ = 134 write_buffer_.get(), 135 write_buffer_->BytesRemaining(), 143 write_buffer_->DidConsume(result); 144 if (write_buffer_->BytesRemaining()) 172 scoped_refptr<DrainableIOBuffer> write_buffer_; member in class:net::__anon14137::TestHttpClient
|
/external/chromium_org/content/browser/appcache/ |
appcache_response_unittest.cc | 109 write_buffer_ = NULL; 186 write_buffer_ = io_buffer; 188 writer_->WriteData(write_buffer_.get(), 671 scoped_refptr<IOBuffer> write_buffer_; member in class:content::AppCacheResponseTest
|
appcache_url_request_job_unittest.cc | 245 write_buffer_ = NULL; 324 write_buffer_ = io_buffer; 326 writer_->WriteData(write_buffer_.get(), 810 scoped_refptr<IOBuffer> write_buffer_; member in class:content::__anon11638::AppCacheURLRequestJobTest
|