#include "third_party/blink/renderer/platform/peerconnection/rtc_rtp_source.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/peerconnection/webrtc_util.h"
#include "third_party/webrtc/api/rtp_headers.h"
#include "third_party/webrtc/api/transport/rtp/rtp_source.h"
#include "third_party/webrtc/api/units/timestamp.h"
#include "third_party/webrtc/rtc_base/time_utils.h"
namespace blink {
namespace {
constexpr webrtc::Timestamp kTimestamp = …;
constexpr uint32_t kSourceId = …;
constexpr webrtc::RtpSourceType kSourceType = …;
constexpr uint32_t kRtpTimestamp = …;
constexpr uint64_t kUint64One = …;
constexpr uint64_t kQ32x32Time1000ms = …;
constexpr uint64_t kQ32x32Time1250ms = …;
constexpr uint64_t kQ32x32Time1500ms = …;
constexpr int64_t kQ32x32TimeNegative500ms = …;
}
TEST(RtcRtpSource, BasicPropertiesAreSetAndReturned) { … }
TEST(RtcRtpSource, BaseTimeTicksAndRtcMicrosAreTheSame) { … }
TEST(RtcRtpSource, AbsoluteCaptureTimeSetAndReturnedNoOffset) { … }
TEST(RtcRtpSource, AbsoluteCaptureTimeSetAndReturnedWithZeroOffset) { … }
TEST(RtcRtpSource, AbsoluteCaptureTimeSetAndReturnedWithPositiveOffset) { … }
TEST(RtcRtpSource, AbsoluteCaptureTimeSetAndReturnedWithNegativeOffset) { … }
}