Adds shared base class for data units.

This reduces code duplication and ensures common behavior
between the unit classes.

Bug: webrtc:9709
Change-Id: I9529ef10b3f538355f53250a2b67c6b4e250cce8
Reviewed-on: https://webrtc-review.googlesource.com/c/110901
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25690}
This commit is contained in:
Sebastian Jansson
2018-11-19 11:17:12 +01:00
committed by Commit Bot
parent d474672dcd
commit 72bba625d5
14 changed files with 697 additions and 678 deletions

View File

@ -13,7 +13,7 @@
#include "rtc_base/strings/string_builder.h"
namespace webrtc {
std::string ToString(const Timestamp& value) {
std::string ToString(Timestamp value) {
char buf[64];
rtc::SimpleStringBuilder sb(buf);
if (value.IsInfinite()) {