Index: components/test_runner/web_test_interfaces.h |
diff --git a/components/test_runner/web_test_interfaces.h b/components/test_runner/web_test_interfaces.h |
index a163c44558e0560f9823568ed90f4ad3ed2bebda..481c4261f952eb1b87a87e6ce8f28255e9c99de1 100644 |
--- a/components/test_runner/web_test_interfaces.h |
+++ b/components/test_runner/web_test_interfaces.h |
@@ -13,6 +13,7 @@ namespace blink { |
class WebAppBannerClient; |
class WebAudioDevice; |
class WebFrame; |
+class WebFrameClient; |
class WebMediaStreamCenter; |
class WebMediaStreamCenterClient; |
class WebMIDIAccessor; |
@@ -28,6 +29,7 @@ namespace test_runner { |
class AppBannerClient; |
class TestInterfaces; |
+class WebFrameTestClient; |
class WebTestDelegate; |
class WebTestProxyBase; |
class WebTestRunner; |
@@ -64,8 +66,15 @@ class TEST_RUNNER_EXPORT WebTestInterfaces { |
TestInterfaces* GetTestInterfaces(); |
+ // Gets a borrowed pointer to a WebFrameClient implementation providing |
+ // test behavior (i.e. forwarding javascript console output to the test |
+ // harness). The caller should guarantee that the returned pointer |
+ // won't be used beyond the lifetime of WebTestInterfaces. |
+ blink::WebFrameClient* GetWebFrameTestClient(); |
+ |
private: |
scoped_ptr<TestInterfaces> interfaces_; |
+ scoped_ptr<WebFrameTestClient> web_frame_test_client_; |
DISALLOW_COPY_AND_ASSIGN(WebTestInterfaces); |
}; |