chromium/third_party/blink/renderer/platform/peerconnection/rtc_rtp_source_test.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 =;

// Q32x32 formatted timestamps.
constexpr uint64_t kUint64One =;
constexpr uint64_t kQ32x32Time1000ms =;
constexpr uint64_t kQ32x32Time1250ms =;
constexpr uint64_t kQ32x32Time1500ms =;
constexpr int64_t kQ32x32TimeNegative500ms =;

}  // namespace

TEST(RtcRtpSource, BasicPropertiesAreSetAndReturned) {}

// The Timestamp() function relies on the fact that Base::TimeTicks() and
// rtc::TimeMicros() share the same implementation.
TEST(RtcRtpSource, BaseTimeTicksAndRtcMicrosAreTheSame) {}

TEST(RtcRtpSource, AbsoluteCaptureTimeSetAndReturnedNoOffset) {}

TEST(RtcRtpSource, AbsoluteCaptureTimeSetAndReturnedWithZeroOffset) {}

TEST(RtcRtpSource, AbsoluteCaptureTimeSetAndReturnedWithPositiveOffset) {}

TEST(RtcRtpSource, AbsoluteCaptureTimeSetAndReturnedWithNegativeOffset) {}

}  // namespace blink