Index: content/layouttest_support/content_layouttest_support.cc |
diff --git a/content/layouttest_support/content_layouttest_support.cc b/content/layouttest_support/content_layouttest_support.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4040069256b767446e0bfa2589c2a836d3f40a9a |
--- /dev/null |
+++ b/content/layouttest_support/content_layouttest_support.cc |
@@ -0,0 +1,25 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
jam
2012/11/08 17:18:08
why a top level dir under content for just one fil
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/public/layouttest_support/content_layouttest_support.h" |
+ |
+#include "content/renderer/render_view_impl.h" |
+#include "third_party/WebKit/Tools/DumpRenderTree/chromium/TestRunner/public/WebTestProxy.h" |
+ |
+using WebTestRunner::WebTestProxy; |
+using WebTestRunner::WebTestProxyBase; |
+ |
+namespace content { |
+ |
+RenderViewImpl* CreateWebTestProxy(RenderViewImplParams* params, |
+ WebTestRunner::WebTestProxyBase** base) { |
+ typedef WebTestProxy<RenderViewImpl, RenderViewImplParams*> ProxyType; |
+ ProxyType* render_view_proxy = new ProxyType( |
+ reinterpret_cast<RenderViewImplParams*>(params)); |
+ if (base) |
+ *base = static_cast<WebTestProxyBase*>(render_view_proxy); |
+ return render_view_proxy; |
+} |
+ |
+} // namespace content |