| Index: Source/web/tests/FrameTestHelpers.h
|
| diff --git a/Source/web/tests/FrameTestHelpers.h b/Source/web/tests/FrameTestHelpers.h
|
| index ff7ff6b77fceb17917c2453532d5874e9ad8ed96..843d2b95786bfba8080b3ad4142512a9fef40856 100644
|
| --- a/Source/web/tests/FrameTestHelpers.h
|
| +++ b/Source/web/tests/FrameTestHelpers.h
|
| @@ -34,6 +34,7 @@
|
| #include "public/platform/WebURLRequest.h"
|
| #include "public/web/WebFrameClient.h"
|
| #include "public/web/WebHistoryItem.h"
|
| +#include "public/web/WebRemoteFrameClient.h"
|
| #include "public/web/WebViewClient.h"
|
| #include "web/WebViewImpl.h"
|
| #include "wtf/PassOwnPtr.h"
|
| @@ -108,6 +109,18 @@ private:
|
| int m_loadsInProgress;
|
| };
|
|
|
| +// Minimal implementation of WebRemoteFrameClient needed for unit tests that load remote frames. Tests that load
|
| +// frames and need further specialization of WebFrameClient behavior should subclass this.
|
| +class TestWebRemoteFrameClient : public WebRemoteFrameClient {
|
| +public:
|
| + // Notifies the embedder that a postMessage was issued to a remote frame.
|
| + virtual void postMessageEvent(
|
| + WebLocalFrame* sourceFrame,
|
| + WebRemoteFrame* targetFrame,
|
| + WebSecurityOrigin targetOrigin,
|
| + WebDOMMessageEvent) { }
|
| +};
|
| +
|
| class TestWebViewClient : public WebViewClient {
|
| public:
|
| virtual ~TestWebViewClient() { }
|
|
|