#include "components/performance_manager/graph/page_node_impl.h"
#include <optional>
#include <string>
#include "base/containers/contains.h"
#include "base/memory/raw_ptr.h"
#include "components/performance_manager/graph/frame_node_impl.h"
#include "components/performance_manager/graph/graph_impl_operations.h"
#include "components/performance_manager/graph/process_node_impl.h"
#include "components/performance_manager/public/freezing/freezing.h"
#include "components/performance_manager/public/graph/page_node.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/gurl.h"
namespace performance_manager {
namespace {
PageNodeImplTest;
const std::string kHtmlMimeType = …;
const std::string kPdfMimeType = …;
const blink::mojom::PermissionStatus kAskNotificationPermission = …;
const PageNode* ToPublic(PageNodeImpl* page_node) { … }
const FrameNode* ToPublic(FrameNodeImpl* frame_node) { … }
}
TEST_F(PageNodeImplTest, SafeDowncast) { … }
PageNodeImplDeathTest;
TEST_F(PageNodeImplDeathTest, SafeDowncast) { … }
TEST_F(PageNodeImplTest, AddFrameBasic) { … }
TEST_F(PageNodeImplTest, RemoveFrame) { … }
TEST_F(PageNodeImplTest, GetTimeSinceLastVisibilityChange) { … }
TEST_F(PageNodeImplTest, GetTimeSinceLastAudibleChange) { … }
TEST_F(PageNodeImplTest, GetTimeSinceLastNavigation) { … }
TEST_F(PageNodeImplTest, BrowserContextID) { … }
TEST_F(PageNodeImplTest, LoadingState) { … }
TEST_F(PageNodeImplTest, HadFormInteractions) { … }
TEST_F(PageNodeImplTest, HadUserEdits) { … }
namespace {
class LenientMockObserver : public PageNodeImpl::Observer { … };
MockObserver;
_;
Invoke;
InvokeWithoutArgs;
}
TEST_F(PageNodeImplTest, ObserverWorks) { … }
TEST_F(PageNodeImplTest, SetMainFrameRestoredState) { … }
TEST_F(PageNodeImplTest, PublicInterface) { … }
TEST_F(PageNodeImplTest, OpenerFrameNode) { … }
TEST_F(PageNodeImplTest, EmbedderFrameNode) { … }
TEST_F(PageNodeImplTest, GetMainFrameNodes) { … }
}