#include "content/public/test/frame_test_utils.h"
#include "base/strings/strcat.h"
#include "content/browser/renderer_host/frame_tree_node.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/test_navigation_observer.h"
#include "net/cookies/canonical_cookie.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace content {
namespace {
void ArrangeFramesAndNavigate(WebContents* web_contents,
net::EmbeddedTestServer* server,
const std::string& frame_tree) { … }
RenderFrameHostImpl* SelectDescendentFrame(WebContents* web_contents,
const std::vector<int>& indices) { … }
}
std::string ArrangeFramesAndGetContentFromLeaf(
WebContents* web_contents,
net::EmbeddedTestServer* server,
const std::string& frame_tree_pattern,
const std::vector<int>& leaf_path,
const GURL& leaf_url) { … }
std::vector<net::CanonicalCookie> ArrangeFramesAndGetCanonicalCookiesForLeaf(
WebContents* web_contents,
net::EmbeddedTestServer* server,
const std::string& frame_tree_pattern,
const GURL& leaf_url) { … }
std::vector<net::CanonicalCookie> ArrangeFramesAndGetCanonicalCookiesForLeaf(
WebContents* web_contents,
net::EmbeddedTestServer* server,
const std::string& frame_tree_pattern,
const GURL& leaf_url,
const GURL& cookie_url) { … }
}