| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module content.mojom; |
| 6 |
| 7 import "mojo/common/file_path.mojom"; |
| 8 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 9 import "url/mojo/url.mojom"; |
| 10 |
| 11 struct ShellTestConfiguration { |
| 12 // The current working directory. |
| 13 mojo.common.mojom.FilePath current_working_directory; |
| 14 |
| 15 // The temporary directory of the system. |
| 16 mojo.common.mojom.FilePath temp_path; |
| 17 |
| 18 // The URL of the current layout test. |
| 19 url.mojom.Url test_url; |
| 20 |
| 21 // True if pixel tests are enabled. |
| 22 bool enable_pixel_dumping; |
| 23 |
| 24 // True if tests can open external URLs |
| 25 bool allow_external_pages; |
| 26 |
| 27 // The expected MD5 hash of the pixel results. |
| 28 string expected_pixel_hash; |
| 29 |
| 30 // The initial size of the test window. |
| 31 gfx.mojom.Size initial_size; |
| 32 }; |
| 33 |
| 34 interface LayoutTestControl { |
| 35 // Asks a frame to dump its contents into a string and send them back over |
| 36 // IPC. |
| 37 LayoutDumpRequest(); |
| 38 |
| 39 // Replicates test config (for an already started test) to a new renderer |
| 40 // that hosts parts of the main test window. |
| 41 ReplicateTestConfiguration(ShellTestConfiguration config); |
| 42 |
| 43 // Sets the test config for a layout test that is being started. This message |
| 44 // is sent only to a renderer that hosts parts of the main test window. |
| 45 SetTestConfiguration(ShellTestConfiguration config); |
| 46 |
| 47 // Sets up a secondary renderer (renderer that doesn't [yet] host parts of the |
| 48 // main test window) for a layout test. |
| 49 SetupSecondaryRenderer(); |
| 50 }; |
| OLD | NEW |