#include "components/performance_manager/decorators/page_load_tracker_decorator.h"
#include <memory>
#include <type_traits>
#include <utility>
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/time/time.h"
#include "components/performance_manager/graph/frame_node_impl.h"
#include "components/performance_manager/graph/page_node_impl.h"
#include "components/performance_manager/graph/process_node_impl.h"
#include "components/performance_manager/test_support/graph_test_harness.h"
#include "components/performance_manager/test_support/mock_graphs.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace performance_manager {
Data;
LIS;
LS;
class PageLoadTrackerDecoratorTest : public GraphTestHarness { … };
void PageLoadTrackerDecoratorTest::TestPageAlmostIdleTransitions(
bool timeout_waiting_for_response,
bool timeout_waiting_for_idle) { … }
TEST_F(PageLoadTrackerDecoratorTest, TestTransitionsNoTimeout) { … }
TEST_F(PageLoadTrackerDecoratorTest, TestTransitionsTimeoutWaitingForResponse) { … }
TEST_F(PageLoadTrackerDecoratorTest, TestTransitionsTimeoutWaitingForIdle) { … }
TEST_F(PageLoadTrackerDecoratorTest,
TestTransitionsTimeoutWaitingForResponseAndWaitingForIdle) { … }
TEST_F(PageLoadTrackerDecoratorTest, TestTransitionsNotIdlingOnDidStopLoading) { … }
TEST_F(PageLoadTrackerDecoratorTest, TestStartLoadingAgainBeforeIdle) { … }
TEST_F(PageLoadTrackerDecoratorTest, IsIdling) { … }
}