/external/chromium_org/net/base/ |
D | upload_file_element_reader_unittest.cc | 35 reader_.reset( in SetUp() 42 ASSERT_EQ(ERR_IO_PENDING, reader_->Init(callback.callback())); in SetUp() 44 EXPECT_EQ(bytes_.size(), reader_->GetContentLength()); in SetUp() 45 EXPECT_EQ(bytes_.size(), reader_->BytesRemaining()); in SetUp() 46 EXPECT_FALSE(reader_->IsInMemory()); in SetUp() 50 reader_.reset(); in ~UploadFileElementReaderTest() 55 scoped_ptr<UploadElementReader> reader_; member in net::UploadFileElementReaderTest 67 reader_->Read( in TEST_F() 70 EXPECT_EQ(bytes_.size() - buf.size(), reader_->BytesRemaining()); in TEST_F() 75 reader_->Read( in TEST_F() [all …]
|
D | upload_bytes_element_reader_unittest.cc | 21 reader_.reset(new UploadBytesElementReader(&bytes_[0], bytes_.size())); in SetUp() 22 ASSERT_EQ(OK, reader_->Init(CompletionCallback())); in SetUp() 23 EXPECT_EQ(bytes_.size(), reader_->GetContentLength()); in SetUp() 24 EXPECT_EQ(bytes_.size(), reader_->BytesRemaining()); in SetUp() 25 EXPECT_TRUE(reader_->IsInMemory()); in SetUp() 29 scoped_ptr<UploadElementReader> reader_; member in net::UploadBytesElementReaderTest 38 reader_->Read(wrapped_buffer.get(), buf.size(), CompletionCallback())); in TEST_F() 39 EXPECT_EQ(bytes_.size() - buf.size(), reader_->BytesRemaining()); in TEST_F() 49 reader_->Read(wrapped_buffer.get(), buf.size(), CompletionCallback())); in TEST_F() 50 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F() [all …]
|
/external/webrtc/test/testsupport/ |
D | packet_reader_unittest.cc | 24 reader_ = new PacketReader(); in SetUp() 27 delete reader_; in TearDown() 38 PacketReader* reader_; member in webrtc::test::PacketReaderTest 44 EXPECT_EQ(-1, reader_->NextPacket(&data_pointer)); in TEST_F() 49 reader_->InitializeReading(packet_data_, 0, kPacketSizeInBytes); in TEST_F() 50 ASSERT_EQ(0, reader_->NextPacket(&packet_data_pointer_)); in TEST_F() 60 reader_->InitializeReading(data, kDataLengthInBytes, kPacketSizeInBytes); in TEST_F() 61 int length_to_read = reader_->NextPacket(&data_pointer); in TEST_F() 66 length_to_read = reader_->NextPacket(&data_pointer); in TEST_F() 77 reader_->InitializeReading(data, kPacketSizeInBytes, kPacketSizeInBytes); in TEST_F() [all …]
|
/external/chromium_org/sdch/open-vcdiff/src/ |
D | decodetable_test.cc | 37 reader_.Init(&instructions_and_sizes_ptr_, in DecodeTableTest() 99 unsigned char found_inst = reader_.GetNextInstruction(&found_size, in VerifyInstModeSize() 150 VCDiffCodeTableReader reader_; member in open_vcdiff::__anon2d7d2b9c0111::DecodeTableTest 173 unsigned char found_inst = reader_.GetNextInstruction(&found_size_, in TEST_F() 183 unsigned char found_inst = reader_.GetNextInstruction(&found_size_, in TEST_F() 193 unsigned char found_inst = reader_.GetNextInstruction(&found_size_, in TEST_F() 203 unsigned char found_inst = reader_.GetNextInstruction(&found_size_, in TEST_F() 208 found_inst = reader_.GetNextInstruction(&found_size_, &found_mode_); in TEST_F() 217 unsigned char found_inst = reader_.GetNextInstruction(&found_size_, in TEST_F() 223 found_inst = reader_.GetNextInstruction(&found_size_, &found_mode_); in TEST_F() [all …]
|
/external/chromium/sdch/open-vcdiff/src/ |
D | decodetable_test.cc | 37 reader_.Init(&instructions_and_sizes_ptr_, in DecodeTableTest() 99 unsigned char found_inst = reader_.GetNextInstruction(&found_size, in VerifyInstModeSize() 150 VCDiffCodeTableReader reader_; member in open_vcdiff::__anon878b68f50111::DecodeTableTest 173 unsigned char found_inst = reader_.GetNextInstruction(&found_size_, in TEST_F() 183 unsigned char found_inst = reader_.GetNextInstruction(&found_size_, in TEST_F() 193 unsigned char found_inst = reader_.GetNextInstruction(&found_size_, in TEST_F() 203 unsigned char found_inst = reader_.GetNextInstruction(&found_size_, in TEST_F() 208 found_inst = reader_.GetNextInstruction(&found_size_, &found_mode_); in TEST_F() 217 unsigned char found_inst = reader_.GetNextInstruction(&found_size_, in TEST_F() 223 found_inst = reader_.GetNextInstruction(&found_size_, &found_mode_); in TEST_F() [all …]
|
/external/open-vcdiff/src/ |
D | decodetable_test.cc | 37 reader_.Init(&instructions_and_sizes_ptr_, in DecodeTableTest() 99 unsigned char found_inst = reader_.GetNextInstruction(&found_size, in VerifyInstModeSize() 150 VCDiffCodeTableReader reader_; member in open_vcdiff::__anona030b0910111::DecodeTableTest 173 unsigned char found_inst = reader_.GetNextInstruction(&found_size_, in TEST_F() 183 unsigned char found_inst = reader_.GetNextInstruction(&found_size_, in TEST_F() 193 unsigned char found_inst = reader_.GetNextInstruction(&found_size_, in TEST_F() 203 unsigned char found_inst = reader_.GetNextInstruction(&found_size_, in TEST_F() 208 found_inst = reader_.GetNextInstruction(&found_size_, &found_mode_); in TEST_F() 217 unsigned char found_inst = reader_.GetNextInstruction(&found_size_, in TEST_F() 223 found_inst = reader_.GetNextInstruction(&found_size_, &found_mode_); in TEST_F() [all …]
|
/external/chromium_org/content/browser/fileapi/ |
D | upload_file_system_file_element_reader_unittest.cc | 58 reader_.reset( in SetUp() 65 ASSERT_EQ(net::ERR_IO_PENDING, reader_->Init(callback.callback())); in SetUp() 67 EXPECT_EQ(file_data_.size(), reader_->GetContentLength()); in SetUp() 68 EXPECT_EQ(file_data_.size(), reader_->BytesRemaining()); in SetUp() 69 EXPECT_FALSE(reader_->IsInMemory()); in SetUp() 73 reader_.reset(); in TearDown() 118 scoped_ptr<UploadFileSystemFileElementReader> reader_; member in fileapi::UploadFileSystemFileElementReaderTest 126 reader_->Read(buf.get(), buf->size(), read_callback.callback())); in TEST_F() 128 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F() 131 EXPECT_EQ(0, reader_->Read(buf.get(), buf->size(), read_callback.callback())); in TEST_F() [all …]
|
/external/chromium_org/media/filters/ |
D | audio_file_reader_unittest.cc | 27 reader_.reset(new AudioFileReader(protocol_.get())); in Initialize() 33 reader_->channels(), reader_->number_of_frames()); in ReadAndVerify() 34 int actual_frames = reader_->Read(decoded_audio_data.get()); in ReadAndVerify() 46 ASSERT_TRUE(reader_->Open()); in RunTest() 47 EXPECT_EQ(channels, reader_->channels()); in RunTest() 48 EXPECT_EQ(sample_rate, reader_->sample_rate()); in RunTest() 49 EXPECT_EQ(duration.InMicroseconds(), reader_->duration().InMicroseconds()); in RunTest() 50 EXPECT_EQ(frames, reader_->number_of_frames()); in RunTest() 56 EXPECT_FALSE(reader_->Open()); in RunTestFailingDemux() 61 EXPECT_TRUE(reader_->Open()); in RunTestFailingDecode() [all …]
|
/external/chromium_org/third_party/libxml/chromium/ |
D | libxml_utils.cc | 17 XmlReader::XmlReader() : reader_(NULL) { in XmlReader() 21 if (reader_) in ~XmlReader() 22 xmlFreeTextReader(reader_); in ~XmlReader() 30 reader_ = xmlReaderForMemory(input.data(), static_cast<int>(input.size()), in Load() 32 return reader_ != NULL; in Load() 38 reader_ = xmlReaderForFile(file_path.c_str(), NULL, kParseOptions); in LoadFile() 39 return reader_ != NULL; in LoadFile() 43 xmlChar* value = xmlTextReaderGetAttribute(reader_, BAD_CAST name); in NodeAttribute() 58 if (xmlTextReaderIsEmptyElement(reader_)) { in ReadElementContent() 75 *content += XmlStringToStdString(xmlTextReaderConstValue(reader_)); in ReadElementContent()
|
D | libxml_utils.h | 55 bool Read() { return xmlTextReaderRead(reader_) == 1; } in Read() 59 bool Next() { return xmlTextReaderNext(reader_) == 1; } in Next() 62 int Depth() { return xmlTextReaderDepth(reader_); } in Depth() 67 return XmlStringToStdString(xmlTextReaderConstLocalName(reader_)); in NodeName() 96 int NodeType() { return xmlTextReaderNodeType(reader_); } in NodeType() 99 xmlTextReaderPtr reader_; variable
|
/external/chromium/chrome/common/ |
D | libxml_utils.cc | 24 : reader_(NULL), in XmlReader() 30 if (reader_) in ~XmlReader() 31 xmlFreeTextReader(reader_); in ~XmlReader() 49 reader_ = xmlReaderForMemory(input.data(), static_cast<int>(input.size()), in Load() 51 return reader_ != NULL; in Load() 57 reader_ = xmlReaderForFile( in LoadFile() 67 return reader_ != NULL; in LoadFile() 71 xmlChar* value = xmlTextReaderGetAttribute(reader_, BAD_CAST name); in NodeAttribute() 83 if (xmlTextReaderIsEmptyElement(reader_)) { in ReadElementContent() 100 *content += XmlStringToStdString(xmlTextReaderConstValue(reader_)); in ReadElementContent()
|
D | libxml_utils.h | 57 bool Read() { return xmlTextReaderRead(reader_) == 1; } in Read() 61 bool Next() { return xmlTextReaderNext(reader_) == 1; } in Next() 64 int Depth() { return xmlTextReaderDepth(reader_); } in Depth() 69 return XmlStringToStdString(xmlTextReaderConstLocalName(reader_)); in NodeName() 102 int NodeType() { return xmlTextReaderNodeType(reader_); } in NodeType() 105 xmlTextReaderPtr reader_; variable
|
/external/chromium_org/webkit/browser/appcache/ |
D | appcache_response_unittest.cc | 106 reader_.reset(); in TearDownTest() 196 EXPECT_FALSE(reader_->IsReadPending()); in ReadResponseBody() 199 reader_->ReadData(read_buffer_.get(), in ReadResponseBody() 225 EXPECT_FALSE(reader_->IsReadPending()); in OnReadInfoComplete() 231 EXPECT_FALSE(reader_->IsReadPending()); in OnReadComplete() 236 reader_.reset(); in OnReadComplete() 298 reader_.reset(service_->storage()->CreateResponseReader( in ReadNonExistentResponse() 310 EXPECT_FALSE(reader_->IsReadPending()); in ReadNonExistentInfo() 312 reader_->ReadInfo(read_info_buffer_.get(), in ReadNonExistentInfo() 315 EXPECT_TRUE(reader_->IsReadPending()); in ReadNonExistentInfo() [all …]
|
D | appcache_url_request_job.cc | 274 reader_.reset(storage_->CreateResponseReader( in OnResponseInfoLoaded() 305 DCHECK(is_range_request() && info_.get() && reader_.get() && in SetupRangeResponse() 320 reader_->SetReadRange(offset, length); in SetupRangeResponse() 371 reader_.reset(); in Kill() 396 if (reader_.get() && reader_->IsReadPending()) in GetLoadState() 430 DCHECK(!reader_->IsReadPending()); in ReadRawData() 431 reader_->ReadData( in ReadRawData()
|
/external/chromium_org/net/quic/ |
D | quic_framer.cc | 456 DCHECK(!reader_.get()); in ProcessPacket() 457 reader_.reset(new QuicDataReader(packet.data(), packet.length())); in ProcessPacket() 472 reader_.reset(NULL); in ProcessPacket() 486 reader_.reset(NULL); in ProcessPacket() 496 if (!reader_->ReadBytes(&version, kQuicVersionSize)) { in ProcessVersionNegotiationPacket() 501 } while (!reader_->IsDoneReading()); in ProcessVersionNegotiationPacket() 529 StringPiece payload = reader_->PeekRemainingPayload(); in ProcessDataPacket() 540 fec_data.redundancy = reader_->ReadRemainingPayload(); in ProcessDataPacket() 551 if (!reader_->ReadUInt64(&packet.nonce_proof)) { in ProcessPublicResetPacket() 557 if (!reader_->ReadUInt48(&packet.rejected_sequence_number)) { in ProcessPublicResetPacket() [all …]
|
/external/openfst/src/include/fst/extensions/far/ |
D | far.h | 315 void Reset() { reader_->Reset(); } in Reset() 317 bool Find(const string &key) { return reader_->Find(key); } in Find() 319 bool Done() const { return reader_->Done(); } in Done() 321 void Next() { return reader_->Next(); } in Next() 323 const string &GetKey() const { return reader_->GetKey(); } in GetKey() 325 const Fst<A> &GetFst() const { return reader_->GetEntry(); } in GetFst() 329 bool Error() const { return reader_->Error(); } in Error() 331 ~STTableFarReader() { delete reader_; } in ~STTableFarReader() local 335 : reader_(reader) {} in STTableFarReader() 338 STTableReader<Fst<A>, FstReader<A> > *reader_; [all …]
|
/external/chromium_org/content/renderer/device_orientation/ |
D | device_motion_event_pump.cc | 43 if (reader_->GetLatestData(&data) && data.allAvailableSensorsAreActive) in FireEvent() 48 if (!reader_) in InitializeReader() 49 reader_.reset(new DeviceMotionSharedMemoryReader()); in InitializeReader() 50 return reader_->Initialize(handle); in InitializeReader()
|
D | device_orientation_event_pump.cc | 47 if (reader_->GetLatestData(&data) && ShouldFireEvent(data)) { in FireEvent() 75 if (!reader_) in InitializeReader() 76 reader_.reset(new DeviceOrientationSharedMemoryReader()); in InitializeReader() 77 return reader_->Initialize(handle); in InitializeReader()
|
/external/chromium_org/content/renderer/media/ |
D | video_source_handler.cc | 29 PpFrameReceiver() : reader_(NULL) {} in PpFrameReceiver() 38 if (reader_) { in RenderFrame() 41 reader_->GotFrame(frame->Copy()); in RenderFrame() 48 reader_ = reader; in SetReader() 52 FrameReaderInterface* reader_; member in content::PpFrameReceiver
|
/external/chromium_org/remoting/host/native_messaging/ |
D | native_messaging_reader.cc | 41 base::WeakPtr<NativeMessagingReader> reader_); 54 base::WeakPtr<NativeMessagingReader> reader_; member in remoting::NativeMessagingReader::Core 71 reader_(reader), in Core() 122 reader_, base::Passed(&message))); in ReadMessage() 130 base::Bind(&NativeMessagingReader::InvokeEofCallback, reader_)); in NotifyEof()
|
D | native_messaging_reader_unittest.cc | 41 scoped_ptr<NativeMessagingReader> reader_; member in remoting::NativeMessagingReaderTest 61 reader_.reset(new NativeMessagingReader(read_handle_)); in SetUp() 75 reader_->Start( in Run()
|
/external/chromium_org/webkit/browser/fileapi/ |
D | file_system_url_request_job.cc | 78 reader_.reset(); in Kill() 89 if (reader_.get() == NULL) in ReadRawData() 100 const int rv = reader_->Read(dest, dest_size, in ReadRawData() 158 DCHECK(!reader_.get()); in StartAsync() 200 DCHECK(!reader_.get()); in DidGetMetadata() 201 reader_ = file_system_context_->CreateFileStreamReader( in DidGetMetadata()
|
/external/chromium_org/content/browser/streams/ |
D | stream.cc | 40 &reader_); in Stream() 45 reader_->RegisterCallback(base::Bind(&Stream::OnDataAvailable, in Stream() 75 reader_.reset(); in Abort() 133 if (!reader_.get()) in ReadRawData() 136 ByteStreamReader::StreamState state = reader_->Read(&data_, &data_length_); in ReadRawData()
|
/external/chromium_org/media/video/capture/win/ |
D | video_capture_device_mf_win.cc | 320 DCHECK(!reader_); in Init() 334 reader_.Receive())); in Init() 349 if (!reader_ || FAILED(hr = FillCapabilities(reader_, &capabilities))) { in AllocateAndStart() 361 if (FAILED(hr = reader_->GetNativeMediaType( in AllocateAndStart() 364 FAILED(hr = reader_->SetCurrentMediaType( in AllocateAndStart() 370 if (FAILED(hr = reader_->ReadSample(MF_SOURCE_READER_FIRST_VIDEO_STREAM, 0, in AllocateAndStart() 389 HRESULT hr = reader_->Flush(MF_SOURCE_READER_ALL_STREAMS); in StopAndDeAllocate() 421 HRESULT hr = reader_->ReadSample(MF_SOURCE_READER_FIRST_VIDEO_STREAM, 0, in OnIncomingCapturedFrame()
|
/external/chromium_org/chrome/browser/chromeos/drive/ |
D | local_file_reader_unittest.cc | 29 explicit LocalFileReaderAdapter(LocalFileReader* reader) : reader_(reader) {} in LocalFileReaderAdapter() 33 reader_->Read(buffer, buffer_length, callback); in Read() 40 LocalFileReader* reader_; member in drive::util::__anon56d74fbc0111::LocalFileReaderAdapter
|