Home
last modified time | relevance | path

Searched refs:SR_SUCCESS (Results 1 – 25 of 32) sorted by relevance

12

/external/webrtc/webrtc/base/
Dstream_unittest.cc35 return SR_SUCCESS; in Read()
82 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); in SeekTest()
90 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); in SeekTest()
118 EXPECT_EQ(SR_SUCCESS, stream->Write(in, kSize, &bytes, NULL)); in TEST()
125 EXPECT_EQ(SR_SUCCESS, stream->Read(out, kSize, &bytes, NULL)); in TEST()
133 EXPECT_EQ(SR_SUCCESS, stream->Write(in, kSize * 2, &bytes, NULL)); in TEST()
137 EXPECT_EQ(SR_SUCCESS, stream->Read(out, kSize * 2, &bytes, NULL)); in TEST()
142 EXPECT_EQ(SR_SUCCESS, stream->Write(in, kSize / 2, &bytes, NULL)); in TEST()
144 EXPECT_EQ(SR_SUCCESS, stream->Read(out, kSize / 2, &bytes, NULL)); in TEST()
147 EXPECT_EQ(SR_SUCCESS, stream->Write(in, kSize / 2, &bytes, NULL)); in TEST()
[all …]
Dstream.cc46 StreamResult result = SR_SUCCESS; in WriteAll()
51 if (result != SR_SUCCESS) in WriteAll()
62 StreamResult result = SR_SUCCESS; in ReadAll()
67 if (result != SR_SUCCESS) in ReadAll()
78 StreamResult result = SR_SUCCESS; in ReadLine()
82 if (result != SR_SUCCESS) { in ReadLine()
91 result = SR_SUCCESS; // a success code. Otherwise return the last code in ReadLine()
244 : StreamAdapterInterface(stream), tap_(), tap_result_(SR_SUCCESS), in StreamTap()
274 if ((res == SR_SUCCESS) && (tap_result_ == SR_SUCCESS)) { in Read()
288 if ((res == SR_SUCCESS) && (tap_result_ == SR_SUCCESS)) { in Write()
[all …]
Doptionsfile.cc42 if (res != SR_SUCCESS) { in Load()
73 StreamResult res = SR_SUCCESS; in Save()
80 if (res != SR_SUCCESS) { in Save()
84 if (res != SR_SUCCESS) { in Save()
89 if (res != SR_SUCCESS) { in Save()
93 if (res != SR_SUCCESS) { in Save()
97 if (res != SR_SUCCESS) { in Save()
Dfilerotatingstream_unittest.cc50 EXPECT_EQ(SR_SUCCESS, stream_->WriteAll(data, data_len, nullptr, nullptr)); in WriteAndFlush()
67 EXPECT_EQ(SR_SUCCESS, in VerifyStreamRead()
83 EXPECT_EQ(rtc::SR_SUCCESS, in VerifyFileContents()
209 EXPECT_EQ(SR_SUCCESS, stream_->WriteAll(data, data_len, nullptr, nullptr)); in WriteAndFlush()
225 EXPECT_EQ(SR_SUCCESS, in VerifyStreamRead()
272 EXPECT_EQ(SR_SUCCESS, in TEST_F()
282 EXPECT_EQ(SR_SUCCESS, in TEST_F()
299 EXPECT_EQ(SR_SUCCESS, in TEST_F()
309 EXPECT_EQ(SR_SUCCESS, in TEST_F()
Dsslstreamadapter_unittest.cc103 if (r != rtc::SR_SUCCESS) { in Read()
108 return rtc::SR_SUCCESS; in Read()
182 return rtc::SR_SUCCESS; in Read()
191 return rtc::SR_SUCCESS; in Write()
412 return rtc::SR_SUCCESS; in DataWritten()
417 return rtc::SR_SUCCESS; in DataWritten()
603 if (rv == rtc::SR_SUCCESS) { in WriteData()
642 ASSERT_EQ(rtc::SR_SUCCESS, r); in ReadData()
701 if (rv == rtc::SR_SUCCESS) { in WriteData()
735 ASSERT_EQ(rtc::SR_SUCCESS, r); in ReadData()
[all …]
Dsocketstream.cc74 return SR_SUCCESS; in Read()
92 return SR_SUCCESS; in Write()
Dhttpbase.cc238 return (buffer_length_ >= size) ? SR_SUCCESS : SR_BLOCK; in DoReserve()
309 result = SR_SUCCESS; in Read()
523 case SR_SUCCESS: in DoReceiveLoop()
634 if (result == SR_SUCCESS) { in flush_data()
687 if (result == SR_SUCCESS) { in flush_data()
860 case SR_SUCCESS: in ProcessData()
Dfileutils_unittest.cc36 EXPECT_EQ(SR_SUCCESS, fs->Write("test", 4, &bytes, NULL)); in TEST()
44 EXPECT_EQ(SR_SUCCESS, fs->Read(buf, sizeof(buf), &bytes, NULL)); in TEST()
Dtransformadapter.cc93 return SR_SUCCESS; in Read()
165 return SR_SUCCESS; in Write()
Dopensslstreamadapter.cc241 if (result == SR_SUCCESS) { in stream_read()
259 if (result == SR_SUCCESS) { in stream_write()
525 return SR_SUCCESS; in Write()
538 return SR_SUCCESS; in Write()
586 return SR_SUCCESS; in Read()
612 return SR_SUCCESS; in Read()
Dfilerotatingstream.cc133 return result == SR_EOS ? SR_SUCCESS : result; in Read()
134 } else if (result == SR_SUCCESS) { in Read()
136 return SR_SUCCESS; in Read()
Dhttpclient.cc214 if (SR_SUCCESS != result) { in HttpWriteCacheHeaders()
218 if (output && (SR_SUCCESS != output->WriteAll("\r\n", 2, NULL, NULL))) { in HttpWriteCacheHeaders()
235 if (SR_SUCCESS != result) { in HttpReadCacheHeaders()
513 if (SR_SUCCESS != result) { in CompleteCacheFile()
605 if (SR_SUCCESS != result) { in ReadCacheBody()
Dssladapter_unittest.cc180 if (r == rtc::SR_SUCCESS) { in Send()
220 if (r == rtc::SR_SUCCESS) { in OnSSLStreamAdapterEvent()
Dmultipart_unittest.cc95 EXPECT_EQ(rtc::SR_SUCCESS, in TEST()
Dlinux.cc255 SR_SUCCESS != fs.ReadLine(&str) || in ReadCpuMaxFreq()
Dmultipart.cc149 if (SR_SUCCESS == result) { in Read()
Dtestutils.h238 return SR_SUCCESS; in Read()
260 return SR_SUCCESS; in Write()
/external/webrtc/talk/media/base/
Drtpdump_unittest.cc88 EXPECT_EQ(rtc::SR_SUCCESS, reader->ReadPacket(&packet)); in TEST()
93 EXPECT_EQ(rtc::SR_SUCCESS, in TEST()
97 EXPECT_EQ(rtc::SR_SUCCESS, reader->ReadPacket(&packet)); in TEST()
102 EXPECT_EQ(rtc::SR_SUCCESS, in TEST()
111 EXPECT_EQ(rtc::SR_SUCCESS, in TEST()
131 EXPECT_EQ(rtc::SR_SUCCESS, reader.ReadPacket(&packet)); in TEST()
145 EXPECT_EQ(rtc::SR_SUCCESS, reader_w_ssrc.ReadPacket(&packet)); in TEST()
170 EXPECT_EQ(rtc::SR_SUCCESS, reader.ReadPacket(&packet)); in TEST()
196 EXPECT_EQ(rtc::SR_SUCCESS, reader.ReadPacket(&packet)); in TEST()
224 EXPECT_EQ(rtc::SR_SUCCESS, reader.ReadPacket(&packet)); in TEST()
[all …]
Drtpdump.cc117 rtc::StreamResult res = rtc::SR_SUCCESS; in ReadPacket()
121 if (res != rtc::SR_SUCCESS) { in ReadPacket()
130 if (res != rtc::SR_SUCCESS) { in ReadPacket()
153 if (res == rtc::SR_SUCCESS && in ReadPacket()
166 if (res != rtc::SR_SUCCESS) { in ReadFileHeader()
176 if (res == rtc::SR_SUCCESS) { in ReadFileHeader()
227 if (rtc::SR_SUCCESS == res) { in ReadPacket()
247 if (rtc::SR_SUCCESS == res && loop_count_ > 0) { in ReadPacket()
342 if (res != rtc::SR_SUCCESS) { in WriteFileHeader()
358 rtc::StreamResult res = rtc::SR_SUCCESS; in WritePacket()
[all …]
Dvideoframe.cc47 rtc::StreamResult result = rtc::SR_SUCCESS; in Write()
64 if (result != rtc::SR_SUCCESS) { in Write()
71 if (result != rtc::SR_SUCCESS) { in Write()
78 if (result != rtc::SR_SUCCESS) { in Write()
Dtestutils.cc157 result &= (rtc::SR_SUCCESS == writer->WritePacket(dump_packet)); in WriteTestPackets()
177 result &= (rtc::SR_SUCCESS == reader.ReadPacket(&packet)); in VerifyTestPacketsFromStream()
294 return (res == rtc::SR_SUCCESS); in LoadPlanarYuvTestImage()
/external/webrtc/talk/media/devices/
Dfilevideocapturer.cc84 if (rtc::SR_SUCCESS != video_file_.Write(buffer.Data(), in RecordFrame()
93 if (rtc::SR_SUCCESS != video_file_.Write(frame.data, in RecordFrame()
194 if (rtc::SR_SUCCESS != ReadFrameHeader(&frame)) { in Init()
294 if (rtc::SR_SUCCESS == sr) { in ReadFrameHeader()
345 if (rtc::SR_SUCCESS != result) { in ReadFrame()
356 if (rtc::SR_SUCCESS != video_file_.Read(captured_frame_.data, in ReadFrame()
/external/webrtc/webrtc/p2p/base/
Ddtlstransportchannel.cc63 return rtc::SR_SUCCESS; in Read()
78 return rtc::SR_SUCCESS; in Write()
373 return (dtls_->WriteAll(data, size, NULL, NULL) == rtc::SR_SUCCESS) in SendPacket()
545 if (dtls_->Read(buf, sizeof(buf), &read, NULL) == rtc::SR_SUCCESS) { in OnDtlsEvent()
Dpseudotcp.cc435 ASSERT(result == rtc::SR_SUCCESS); in Recv()
540 ASSERT(result == rtc::SR_SUCCESS); in packet()
911 ASSERT(result == rtc::SR_SUCCESS); in process()
/external/webrtc/webrtc/libjingle/xmpp/
Dxmppsocket.cc146 ASSERT(result == rtc::SR_SUCCESS); in OnEvent()
187 if (result == rtc::SR_SUCCESS) in Read()

12