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

Unified Diff: webkit/support/test_webkit_platform_support.cc

Issue 10703114: Adding support for overriding TestWebKitPlatformSupport in DumpRenderTree (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "Fixed review comments" 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 | « webkit/support/test_webkit_platform_support.h ('k') | webkit/support/webkit_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/test_webkit_platform_support.cc
diff --git a/webkit/support/test_webkit_platform_support.cc b/webkit/support/test_webkit_platform_support.cc
index 57fe67e3afaa83abb6b73b89d1768b348500d6e0..724ad678bf9bcb5b1ff7d6f14a515a24327f6202 100644
--- a/webkit/support/test_webkit_platform_support.cc
+++ b/webkit/support/test_webkit_platform_support.cc
@@ -68,8 +68,10 @@
using WebKit::WebScriptController;
-TestWebKitPlatformSupport::TestWebKitPlatformSupport(bool unit_test_mode)
- : unit_test_mode_(unit_test_mode) {
+TestWebKitPlatformSupport::TestWebKitPlatformSupport(bool unit_test_mode,
+ WebKit::Platform* shadow_platform_delegate)
+ : unit_test_mode_(unit_test_mode),
+ shadow_platform_delegate_(shadow_platform_delegate) {
v8::V8::SetCounterFunction(base::StatsTable::FindLocation);
WebKit::initialize(this);
@@ -497,3 +499,13 @@ TestWebKitPlatformSupport::CreateWebSocketBridge(
webkit_glue::WebSocketStreamHandleDelegate* delegate) {
return SimpleSocketStreamBridge::Create(handle, delegate);
}
+
+WebKit::WebMediaStreamCenter*
+TestWebKitPlatformSupport::createMediaStreamCenter(
+ WebKit::WebMediaStreamCenterClient* client) {
+ if (shadow_platform_delegate_)
+ return shadow_platform_delegate_->createMediaStreamCenter(client);
+ else
+ return webkit_glue::WebKitPlatformSupportImpl::createMediaStreamCenter(
+ client);
+}
« no previous file with comments | « webkit/support/test_webkit_platform_support.h ('k') | webkit/support/webkit_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698