#include "base/strings/pattern.h"
#include "base/strings/stringprintf.h"
#include "base/values.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "extensions/test/test_extension_dir.h"
#include "net/dns/mock_host_resolver.h"
namespace extensions {
namespace {
bool WasFrameWithScriptLoaded(content::RenderFrameHost* render_frame_host) { … }
class ExtensionCSPBypassTest : public ExtensionBrowserTest { … };
}
IN_PROC_BROWSER_TEST_F(ExtensionCSPBypassTest, LoadWebAccessibleScript) { … }
IN_PROC_BROWSER_TEST_F(ExtensionCSPBypassTest, InjectIframe) { … }
IN_PROC_BROWSER_TEST_F(ExtensionCSPBypassTest, FrameAncestors) { … }
}