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

Unified Diff: content/shell/renderer/layout_test/layout_test_render_frame_observer.cc

Issue 1750063002: Replicate static layout test configuration to all renderers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no-test-finished-in-secondary-frames-please
Patch Set: Rebasing... Created 4 years, 9 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 | « content/shell/renderer/layout_test/layout_test_render_frame_observer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/layout_test/layout_test_render_frame_observer.cc
diff --git a/content/shell/renderer/layout_test/layout_test_render_frame_observer.cc b/content/shell/renderer/layout_test/layout_test_render_frame_observer.cc
index cf514295209717453ebe0a7ca2c3fb91bf93ef98..7376b367b9d2a305dd5f65a87c21628cb9693798 100644
--- a/content/shell/renderer/layout_test/layout_test_render_frame_observer.cc
+++ b/content/shell/renderer/layout_test/layout_test_render_frame_observer.cc
@@ -12,6 +12,7 @@
#include "components/test_runner/web_test_runner.h"
#include "content/public/renderer/render_frame.h"
#include "content/shell/common/shell_messages.h"
+#include "content/shell/renderer/layout_test/blink_test_runner.h"
#include "content/shell/renderer/layout_test/layout_test_render_process_observer.h"
#include "ipc/ipc_message_macros.h"
#include "third_party/WebKit/public/web/WebLocalFrame.h"
@@ -33,6 +34,10 @@ bool LayoutTestRenderFrameObserver::OnMessageReceived(
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(LayoutTestRenderFrameObserver, message)
IPC_MESSAGE_HANDLER(ShellViewMsg_LayoutDumpRequest, OnLayoutDumpRequest)
+ IPC_MESSAGE_HANDLER(ShellViewMsg_ReplicateTestConfiguration,
+ OnReplicateTestConfiguration)
+ IPC_MESSAGE_HANDLER(ShellViewMsg_SetTestConfiguration,
+ OnSetTestConfiguration)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -46,4 +51,18 @@ void LayoutTestRenderFrameObserver::OnLayoutDumpRequest(
Send(new ShellViewHostMsg_LayoutDumpResponse(routing_id(), dump));
}
+void LayoutTestRenderFrameObserver::OnReplicateTestConfiguration(
+ const ShellTestConfiguration& test_config) {
+ LayoutTestRenderProcessObserver::GetInstance()
+ ->main_test_runner()
+ ->OnReplicateTestConfiguration(test_config);
+}
+
+void LayoutTestRenderFrameObserver::OnSetTestConfiguration(
+ const ShellTestConfiguration& test_config) {
+ LayoutTestRenderProcessObserver::GetInstance()
+ ->main_test_runner()
+ ->OnSetTestConfiguration(test_config);
+}
+
} // namespace content
« no previous file with comments | « content/shell/renderer/layout_test/layout_test_render_frame_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698