Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(706)

Unified Diff: content/public/test/layouttest_support.h

Issue 584553002: Extend the TestRunner so that the manifest-src CSP directive can be tested from layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate feedback Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/test/layouttest_support.h
diff --git a/content/public/test/layouttest_support.h b/content/public/test/layouttest_support.h
index 70676ea7af31fdabf68382bb00c27d18b5270722..96f33e81e241e06a2d40a0b8129886e9abbfea6b 100644
--- a/content/public/test/layouttest_support.h
+++ b/content/public/test/layouttest_support.h
@@ -11,6 +11,7 @@
#include "base/callback_forward.h"
#include "cc/layers/texture_layer.h"
#include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
+#include "url/gurl.h"
Mike West 2014/09/24 15:15:47 Can you forward-declare this?
namespace blink {
class WebBatteryStatus;
@@ -20,6 +21,8 @@ class WebGamepad;
class WebGamepads;
class WebLayer;
struct WebSize;
+class WebView;
+class WebURLResponse;
}
namespace content {
@@ -45,6 +48,11 @@ void EnableRendererLayoutTestMode();
void EnableWebTestProxyCreation(
const base::Callback<void(RenderView*, WebTestProxyBase*)>& callback);
+typedef base::Callback<void(const blink::WebURLResponse& response,
+ const std::string& data)> FetchManifestCallback;
+void FetchManifest(blink::WebView* view, GURL url,
mlamouri (slow - plz ping) 2014/09/24 15:52:10 You probably want to pass a |const GURL&| here.
+ const FetchManifestCallback&);
+
// Sets gamepad provider to be used for layout tests.
void SetMockGamepadProvider(scoped_ptr<RendererGamepadProvider> provider);
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/test_runner.h » ('j') | content/shell/renderer/test_runner/test_runner.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698