chromium/third_party/blink/renderer/modules/peerconnection/media_stream_track_metrics_test.cc

// Copyright 2014 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/modules/peerconnection/media_stream_track_metrics.h"

#include <stddef.h>

#include <memory>

#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/threading/thread.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/modules/peerconnection/mock_peer_connection_dependency_factory.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/webrtc/api/media_stream_interface.h"

AudioSourceInterface;
AudioTrackInterface;
AudioTrackSinkInterface;
MediaStreamInterface;
ObserverInterface;
PeerConnectionInterface;
VideoTrackInterface;
VideoTrackSourceInterface;

namespace blink {

// A very simple mock that implements only the id() method.
class MockAudioTrackInterface : public AudioTrackInterface {};

// A very simple mock that implements only the id() method.
class MockVideoTrackInterface : public VideoTrackInterface {};

class MockMediaStreamTrackMetrics : public MediaStreamTrackMetrics {};

class MediaStreamTrackMetricsTest : public testing::Test {};

TEST_F(MediaStreamTrackMetricsTest, MakeUniqueId) {}

TEST_F(MediaStreamTrackMetricsTest, BasicRemoteStreams) {}

TEST_F(MediaStreamTrackMetricsTest, BasicLocalStreams) {}

TEST_F(MediaStreamTrackMetricsTest, LocalStreamAddedAferIceConnect) {}

TEST_F(MediaStreamTrackMetricsTest, RemoteStreamAddedAferIceConnect) {}

TEST_F(MediaStreamTrackMetricsTest, LocalStreamTrackRemoved) {}

TEST_F(MediaStreamTrackMetricsTest, RemoveAfterDisconnect) {}

TEST_F(MediaStreamTrackMetricsTest, RemoteStreamMultipleDisconnects) {}

TEST_F(MediaStreamTrackMetricsTest, RemoteStreamConnectDisconnectTwice) {}

TEST_F(MediaStreamTrackMetricsTest, LocalStreamRemovedNoDisconnect) {}

TEST_F(MediaStreamTrackMetricsTest, LocalStreamLargerTest) {}

}  // namespace blink