#ifndef CHROME_BROWSER_NET_STORAGE_TEST_UTILS_H_
#define CHROME_BROWSER_NET_STORAGE_TEST_UTILS_H_
#include <string>
#include "base/location.h"
class GURL;
namespace content {
class RenderFrameHost;
}
namespace storage::test {
std::string GetFrameContent(content::RenderFrameHost* frame);
void SetStorageForFrame(content::RenderFrameHost* frame,
bool include_cookies,
bool expected_to_be_set = true,
const base::Location& location = FROM_HERE);
void SetStorageForWorker(content::RenderFrameHost* frame,
const base::Location& location = FROM_HERE);
void ExpectStorageForFrame(content::RenderFrameHost* frame,
bool expected,
const base::Location& location = FROM_HERE);
void ExpectStorageForWorker(content::RenderFrameHost* frame,
bool expected,
const base::Location& location = FROM_HERE);
void SetCrossTabInfoForFrame(content::RenderFrameHost* frame,
const base::Location& location = FROM_HERE);
void ExpectCrossTabInfoForFrame(content::RenderFrameHost* frame,
bool expected,
const base::Location& location = FROM_HERE);
bool RequestAndCheckStorageAccessForFrame(content::RenderFrameHost* frame,
bool omit_user_gesture = false);
bool RequestAndCheckStorageAccessBeyondCookiesForFrame(
content::RenderFrameHost* frame);
bool RequestStorageAccessForOrigin(content::RenderFrameHost* frame,
const std::string& origin,
bool omit_user_gesture = false);
bool HasStorageAccessForFrame(content::RenderFrameHost* frame);
std::string FetchWithCredentials(content::RenderFrameHost* frame,
const GURL& url,
const bool cors_enabled);
}
#endif