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

Unified Diff: webkit/support/webkit_support.h

Issue 10703114: Adding support for overriding TestWebKitPlatformSupport in DumpRenderTree (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « no previous file | webkit/support/webkit_support.cc » ('j') | webkit/support/webkit_support.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/webkit_support.h
diff --git a/webkit/support/webkit_support.h b/webkit/support/webkit_support.h
index 130642a4e54ed5ca21d81aeccc28cf71bf124037..44758f16d733f97bb2159ccc5ce0da6cdf86d982 100644
--- a/webkit/support/webkit_support.h
+++ b/webkit/support/webkit_support.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/string16.h"
+#include "base/callback.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgentClient.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSystem.h"
@@ -41,6 +42,10 @@ namespace webkit_media {
class MediaStreamClient;
}
+class TestWebKitPlatformSupport;
+typedef base::Callback<TestWebKitPlatformSupport*(bool)>
+ PlatformSupportCreatorCallback;
+
// This package provides functions used by DumpRenderTree/chromium.
// DumpRenderTree/chromium uses some code in webkit/ of Chromium. In
// order to minimize the dependency from WebKit to Chromium, the
@@ -59,7 +64,9 @@ namespace webkit_support {
// TestSuite, in which case no AtExitManager is created and ICU is not
// initialized (as it is already done by the TestSuite).
void SetUpTestEnvironment();
+void SetUpTestEnvironment(const PlatformSupportCreatorCallback&);
tommi (sloooow) - chröme 2012/07/09 12:19:29 add variable names
Tommy Widenflycht 2012/07/09 12:25:31 Done.
void SetUpTestEnvironmentForUnitTests();
+void SetUpTestEnvironmentForUnitTests(const PlatformSupportCreatorCallback&);
void TearDownTestEnvironment();
// Returns a pointer to a WebKitPlatformSupport implementation for
« no previous file with comments | « no previous file | webkit/support/webkit_support.cc » ('j') | webkit/support/webkit_support.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698