#include "components/metrics/net/network_metrics_provider.h"
#include <memory>
#include "base/functional/callback.h"
#include "base/memory/ptr_util.h"
#include "base/run_loop.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "services/network/test/test_network_connection_tracker.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/metrics_proto/system_profile.pb.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chromeos/ash/components/network/network_handler_test_helper.h"
#endif
#if BUILDFLAG(IS_IOS)
#include "ios/web/public/test/web_task_environment.h"
#else
#include "content/public/test/browser_task_environment.h"
#endif
namespace metrics {
class NetworkMetricsProviderTest : public testing::Test { … };
TEST_F(NetworkMetricsProviderTest, EffectiveConnectionType) { … }
TEST_F(NetworkMetricsProviderTest, ECTAmbiguousOnConnectionTypeChange) { … }
TEST_F(NetworkMetricsProviderTest, ECTNotAmbiguousOnUnknownOrOffline) { … }
TEST_F(NetworkMetricsProviderTest, ConnectionTypeIsAmbiguous) { … }
}