#include "components/performance_manager/graph/frame_node_impl.h"
#include <optional>
#include "base/containers/contains.h"
#include "base/memory/raw_ptr.h"
#include "base/task/task_traits.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/gtest_util.h"
#include "components/performance_manager/graph/page_node_impl.h"
#include "components/performance_manager/graph/process_node_impl.h"
#include "components/performance_manager/public/execution_context_priority/execution_context_priority.h"
#include "components/performance_manager/public/render_process_host_id.h"
#include "components/performance_manager/public/render_process_host_proxy.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"
#include "url/origin.h"
namespace performance_manager {
namespace {
FrameNodeImplTest;
}
TEST_F(FrameNodeImplTest, SafeDowncast) { … }
FrameNodeImplDeathTest;
TEST_F(FrameNodeImplDeathTest, SafeDowncast) { … }
TEST_F(FrameNodeImplTest, AddFrameHierarchyBasic) { … }
TEST_F(FrameNodeImplTest, GetFrameNodeById) { … }
TEST_F(FrameNodeImplTest, NavigationCommitted_SameDocument) { … }
TEST_F(FrameNodeImplTest, NavigationCommitted_DifferentDocument) { … }
TEST_F(FrameNodeImplTest, RemoveChildFrame) { … }
namespace {
class LenientMockObserver : public FrameNodeImpl::Observer { … };
MockObserver;
_;
Invoke;
InvokeWithoutArgs;
}
TEST_F(FrameNodeImplTest, ObserverWorks) { … }
TEST_F(FrameNodeImplDeathTest, SetPropertyDuringNodeCreation) { … }
TEST_F(FrameNodeImplTest, IsAdFrame) { … }
TEST_F(FrameNodeImplTest, IsHoldingWebLock) { … }
TEST_F(FrameNodeImplTest, IsHoldingIndexedDBLock) { … }
TEST_F(FrameNodeImplTest, UsesWebRTC) { … }
TEST_F(FrameNodeImplTest, Priority) { … }
TEST_F(FrameNodeImplTest, UserActivation) { … }
TEST_F(FrameNodeImplTest, FormInteractions) { … }
TEST_F(FrameNodeImplTest, UserEdits) { … }
TEST_F(FrameNodeImplTest, IsAudible) { … }
TEST_F(FrameNodeImplTest, IsCapturingMediaStream) { … }
TEST_F(FrameNodeImplTest, ViewportIntersectionState) { … }
TEST_F(FrameNodeImplTest, Visibility) { … }
TEST_F(FrameNodeImplTest, FirstContentfulPaint) { … }
TEST_F(FrameNodeImplTest, PublicInterface) { … }
namespace {
class LenientMockPageObserver : public PageNode::ObserverDefaultImpl { … };
MockPageObserver;
}
TEST_F(FrameNodeImplTest, PageRelationships) { … }
}