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

Side by Side Diff: content/test/layouttest_support.cc

Issue 12315103: mac content shell drt: Hook up a dummy image transport (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: jochen Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/test/layouttest_support.h" 5 #include "content/public/test/layouttest_support.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "content/common/gpu/image_transport_surface.h"
9 #include "content/renderer/devtools/devtools_client.h" 10 #include "content/renderer/devtools/devtools_client.h"
10 #include "content/renderer/render_view_impl.h" 11 #include "content/renderer/render_view_impl.h"
11 #include "content/renderer/renderer_webapplicationcachehost_impl.h" 12 #include "content/renderer/renderer_webapplicationcachehost_impl.h"
12 #include "content/renderer/renderer_webkitplatformsupport_impl.h" 13 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h" 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h"
14 #include "third_party/WebKit/Tools/DumpRenderTree/chromium/TestRunner/public/Web TestProxy.h" 15 #include "third_party/WebKit/Tools/DumpRenderTree/chromium/TestRunner/public/Web TestProxy.h"
15 16
16 using WebKit::WebGamepads; 17 using WebKit::WebGamepads;
17 using WebTestRunner::WebTestProxy; 18 using WebTestRunner::WebTestProxy;
18 using WebTestRunner::WebTestProxyBase; 19 using WebTestRunner::WebTestProxyBase;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 55
55 void EnableDevToolsFrontendTesting() { 56 void EnableDevToolsFrontendTesting() {
56 DevToolsClient::EnableDevToolsFrontendTesting(); 57 DevToolsClient::EnableDevToolsFrontendTesting();
57 } 58 }
58 59
59 int GetLocalSessionHistoryLength(RenderView* render_view) { 60 int GetLocalSessionHistoryLength(RenderView* render_view) {
60 return static_cast<RenderViewImpl*>(render_view) 61 return static_cast<RenderViewImpl*>(render_view)
61 ->GetLocalSessionHistoryLengthForTesting(); 62 ->GetLocalSessionHistoryLengthForTesting();
62 } 63 }
63 64
65 void SetAllowOSMesaImageTransportForTesting() {
66 #if defined(OS_MACOSX)
67 ImageTransportSurface::SetAllowOSMesaForTesting(true);
68 #endif
69 }
70
64 } // namespace content 71 } // namespace content
OLDNEW
« content/shell/shell_main_delegate.cc ('K') | « content/shell/shell_main_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698