#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 { … };
}
class NetworkQualityTrackerTest : public testing::Test { … };
TEST_F(NetworkQualityTrackerTest, ECTObserverNotified) { … }
TEST_F(NetworkQualityTrackerTest, ECTObserverNotifiedUnknown) { … }
TEST_F(NetworkQualityTrackerTest, RttThroughputObserverNotified) { … }
TEST_F(NetworkQualityTrackerTest, ECTObserverNotifiedOnAddition) { … }
TEST_F(NetworkQualityTrackerTest, RttThroughputObserverNotifiedOnAddition) { … }
TEST_F(NetworkQualityTrackerTest, UnregisteredECTObserverNotNotified) { … }
TEST_F(NetworkQualityTrackerTest, UnregisteredRttThroughputbserverNotNotified) { … }
}