#include "base/test/bind.h"
#include "content/browser/permissions/permission_controller_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_content_browser_client.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/shell/browser/shell.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/system/functions.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "third_party/blink/public/mojom/storage_access/storage_access_handle.mojom.h"
namespace {
class MockContentBrowserClient final
: public content::ContentBrowserTestContentBrowserClient { … };
}
namespace content {
class StorageAccessBrowserTest : public ContentBrowserTest { … };
IN_PROC_BROWSER_TEST_F(StorageAccessBrowserTest, WithCookiesWithPermission) { … }
IN_PROC_BROWSER_TEST_F(StorageAccessBrowserTest, WithCookiesWithoutPermission) { … }
IN_PROC_BROWSER_TEST_F(StorageAccessBrowserTest, WithoutCookiesWithPermission) { … }
IN_PROC_BROWSER_TEST_F(StorageAccessBrowserTest,
WithoutCookiesWithoutPermission) { … }
}