chromium/services/network/public/cpp/network_quality_tracker_unittest.cc

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

#include "services/network/public/cpp/network_quality_tracker.h"

#include <limits>

#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/threading/thread.h"
#include "base/threading/thread_checker.h"
#include "base/time/time.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "net/nqe/effective_connection_type.h"
#include "net/nqe/network_quality_estimator.h"
#include "services/network/network_service.h"
#include "services/network/public/mojom/network_change_manager.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace network {

namespace {

class TestEffectiveConnectionTypeObserver
    : public NetworkQualityTracker::EffectiveConnectionTypeObserver {};

class TestRTTAndThroughputEstimatesObserver
    : public NetworkQualityTracker::RTTAndThroughputEstimatesObserver {};

}  // namespace

class NetworkQualityTrackerTest : public testing::Test {};

TEST_F(NetworkQualityTrackerTest, ECTObserverNotified) {}

// Test that network quality tracker sets the network quality values correctly
// when the network quality is unavailable.
TEST_F(NetworkQualityTrackerTest, ECTObserverNotifiedUnknown) {}

TEST_F(NetworkQualityTrackerTest, RttThroughputObserverNotified) {}

TEST_F(NetworkQualityTrackerTest, ECTObserverNotifiedOnAddition) {}

TEST_F(NetworkQualityTrackerTest, RttThroughputObserverNotifiedOnAddition) {}

TEST_F(NetworkQualityTrackerTest, UnregisteredECTObserverNotNotified) {}

TEST_F(NetworkQualityTrackerTest, UnregisteredRttThroughputbserverNotNotified) {}

}  // namespace network