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

Unified Diff: content/shell/common/layout_test.mojom

Issue 2594913002: Replace IPC messages in layout_test_render_frame_observer. (Closed)
Patch Set: Removed a redundant line Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/common/OWNERS ('k') | content/shell/common/shell_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/common/layout_test.mojom
diff --git a/content/shell/common/layout_test.mojom b/content/shell/common/layout_test.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..c0de4b5e61ab2b3273bfad4e5fc5b08f90243c96
--- /dev/null
+++ b/content/shell/common/layout_test.mojom
@@ -0,0 +1,50 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module content.mojom;
+
+import "mojo/common/file_path.mojom";
+import "ui/gfx/geometry/mojo/geometry.mojom";
+import "url/mojo/url.mojom";
+
+struct ShellTestConfiguration {
+ // The current working directory.
+ mojo.common.mojom.FilePath current_working_directory;
+
+ // The temporary directory of the system.
+ mojo.common.mojom.FilePath temp_path;
+
+ // The URL of the current layout test.
+ url.mojom.Url test_url;
+
+ // True if pixel tests are enabled.
+ bool enable_pixel_dumping;
+
+ // True if tests can open external URLs
+ bool allow_external_pages;
+
+ // The expected MD5 hash of the pixel results.
+ string expected_pixel_hash;
+
+ // The initial size of the test window.
+ gfx.mojom.Size initial_size;
+};
+
+interface LayoutTestControl {
+ // Asks a frame to dump its contents into a string and send them back over
+ // IPC.
+ LayoutDumpRequest();
+
+ // Replicates test config (for an already started test) to a new renderer
+ // that hosts parts of the main test window.
+ ReplicateTestConfiguration(ShellTestConfiguration config);
+
+ // Sets the test config for a layout test that is being started. This message
+ // is sent only to a renderer that hosts parts of the main test window.
+ SetTestConfiguration(ShellTestConfiguration config);
+
+ // Sets up a secondary renderer (renderer that doesn't [yet] host parts of the
+ // main test window) for a layout test.
+ SetupSecondaryRenderer();
+};
« no previous file with comments | « content/shell/common/OWNERS ('k') | content/shell/common/shell_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698