#include "chrome/browser/media/router/discovery/discovery_network_monitor.h"
#include <functional>
#include <memory>
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media_router {
namespace {
_;
Invoke;
class MockDiscoveryObserver : public DiscoveryNetworkMonitor::Observer { … };
}
class DiscoveryNetworkMonitorTest : public testing::Test { … };
std::vector<DiscoveryNetworkInfo>
DiscoveryNetworkMonitorTest::fake_network_info;
TEST_F(DiscoveryNetworkMonitorTest, NetworkIdIsConsistent) { … }
TEST_F(DiscoveryNetworkMonitorTest, RemoveObserverStopsNotifications) { … }
TEST_F(DiscoveryNetworkMonitorTest, RefreshIndependentOfChangeObserver) { … }
TEST_F(DiscoveryNetworkMonitorTest, GetNetworkIdWithoutRefresh) { … }
TEST_F(DiscoveryNetworkMonitorTest, GetNetworkIdWithRefresh) { … }
TEST_F(DiscoveryNetworkMonitorTest, GetNetworkIdWithObserver) { … }
}