#include "base/memory/raw_ptr.h"
#include "components/download/internal/background_service/navigation_monitor_impl.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/weak_ptr.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/test_mock_time_task_runner.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace download {
namespace {
class TestNavigationMonitorObserver : public NavigationMonitor::Observer { … };
class NavigationMonitorImplTest : public testing::Test { … };
TEST_F(NavigationMonitorImplTest, NoObserver) { … }
TEST_F(NavigationMonitorImplTest, NavigationTimeout) { … }
TEST_F(NavigationMonitorImplTest, UnexpectedNavigationEndCalls) { … }
TEST_F(NavigationMonitorImplTest, OverlappingNavigations) { … }
TEST_F(NavigationMonitorImplTest, TwoNavigationsShortlyOneAfterAnother) { … }
TEST_F(NavigationMonitorImplTest, NavigationSpacedApartLongTime) { … }
}
}