Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1047)

Unified Diff: webrtc/media/base/testutils.h

Issue 1821083002: Split ByteBuffer into writer/reader objects. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/media/base/rtpdump_unittest.cc ('k') | webrtc/media/base/testutils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/testutils.h
diff --git a/webrtc/media/base/testutils.h b/webrtc/media/base/testutils.h
index ba64f825922be28b5e68ba12227c586fcee0f761..6d814efe6db9c70235ca996b057ac03d44ea0b35 100644
--- a/webrtc/media/base/testutils.h
+++ b/webrtc/media/base/testutils.h
@@ -24,7 +24,8 @@
#include "webrtc/media/base/videocommon.h"
namespace rtc {
-class ByteBuffer;
+class ByteBufferReader;
+class ByteBufferWriter;
class StreamInterface;
}
@@ -45,8 +46,8 @@ class RtpDumpWriter;
class VideoFrame;
struct RawRtpPacket {
- void WriteToByteBuffer(uint32_t in_ssrc, rtc::ByteBuffer* buf) const;
- bool ReadFromByteBuffer(rtc::ByteBuffer* buf);
+ void WriteToByteBuffer(uint32_t in_ssrc, rtc::ByteBufferWriter* buf) const;
+ bool ReadFromByteBuffer(rtc::ByteBufferReader* buf);
// Check if this packet is the same as the specified packet except the
// sequence number and timestamp, which should be the same as the specified
// parameters.
@@ -65,8 +66,8 @@ struct RawRtpPacket {
};
struct RawRtcpPacket {
- void WriteToByteBuffer(rtc::ByteBuffer* buf) const;
- bool ReadFromByteBuffer(rtc::ByteBuffer* buf);
+ void WriteToByteBuffer(rtc::ByteBufferWriter* buf) const;
+ bool ReadFromByteBuffer(rtc::ByteBufferReader* buf);
bool EqualsTo(const RawRtcpPacket& packet) const;
uint8_t ver_to_count;
« no previous file with comments | « webrtc/media/base/rtpdump_unittest.cc ('k') | webrtc/media/base/testutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698