#include "content/browser/renderer_host/frame_tree.h"
#include <stddef.h>
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "content/browser/renderer_host/navigator.h"
#include "content/browser/renderer_host/render_frame_host_factory.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/browser/renderer_host/render_view_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/mock_render_process_host.h"
#include "content/public/test/test_browser_context.h"
#include "content/test/test_render_frame_host.h"
#include "content/test/test_render_view_host.h"
#include "content/test/test_web_contents.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/frame/frame_owner_element_type.h"
#include "third_party/blink/public/common/frame/frame_policy.h"
#include "third_party/blink/public/common/tokens/tokens.h"
#include "third_party/blink/public/mojom/frame/frame_owner_properties.mojom.h"
namespace content {
namespace {
void AppendTreeNodeState(FrameTreeNode* node, std::string* result) { … }
mojo::PendingAssociatedRemote<mojom::Frame> CreateStubFrameRemote() { … }
mojo::PendingReceiver<blink::mojom::BrowserInterfaceBroker>
CreateStubBrowserInterfaceBrokerReceiver() { … }
blink::mojom::PolicyContainerBindParamsPtr
CreateStubPolicyContainerBindParams() { … }
mojo::PendingAssociatedReceiver<blink::mojom::AssociatedInterfaceProvider>
CreateStubAssociatedInterfaceProviderReceiver() { … }
class TreeWalkingWebContentsLogger : public WebContentsObserver { … };
}
class FrameTreeTest : public RenderViewHostImplTestHarness { … };
TEST_F(FrameTreeTest, FrameNodeQueue) { … }
TEST_F(FrameTreeTest, Shape) { … }
TEST_F(FrameTreeTest, FindFrames) { … }
TEST_F(FrameTreeTest, GetSibling) { … }
TEST_F(FrameTreeTest, ObserverWalksTreeDuringFrameCreation) { … }
TEST_F(FrameTreeTest, ObserverWalksTreeAfterCrash) { … }
TEST_F(FrameTreeTest, FailAddFrameWithWrongProcessId) { … }
TEST_F(FrameTreeTest, ProcessCrashClearsGlobalMap) { … }
}