OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_SHELL_COMMON_SHELL_TEST_CONFIGURATION_H_ | 5 #ifndef CONTENT_SHELL_COMMON_SHELL_TEST_CONFIGURATION_H_ |
6 #define CONTENT_SHELL_COMMON_SHELL_TEST_CONFIGURATION_H_ | 6 #define CONTENT_SHELL_COMMON_SHELL_TEST_CONFIGURATION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/memory/shared_memory_handle.h" |
11 #include "ui/gfx/geometry/size.h" | 12 #include "ui/gfx/geometry/size.h" |
12 #include "url/gurl.h" | 13 #include "url/gurl.h" |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 | 16 |
16 struct ShellTestConfiguration { | 17 struct ShellTestConfiguration { |
17 ShellTestConfiguration(); | 18 ShellTestConfiguration(); |
18 ~ShellTestConfiguration(); | 19 ~ShellTestConfiguration(); |
19 | 20 |
20 // The current working directory. | 21 // The current working directory. |
21 base::FilePath current_working_directory; | 22 base::FilePath current_working_directory; |
22 | 23 |
23 // The temporary directory of the system. | 24 // The temporary directory of the system. |
24 base::FilePath temp_path; | 25 base::FilePath temp_path; |
25 | 26 |
26 // The URL of the current layout test. | 27 // The URL of the current layout test. |
27 GURL test_url; | 28 GURL test_url; |
28 | 29 |
29 // True if pixel tests are enabled. | 30 // True if pixel tests are enabled. |
30 bool enable_pixel_dumping; | 31 bool enable_pixel_dumping; |
31 | 32 |
32 // True if tests can open external URLs | 33 // True if tests can open external URLs |
33 bool allow_external_pages; | 34 bool allow_external_pages; |
34 | 35 |
35 // The expected MD5 hash of the pixel results. | 36 // The expected MD5 hash of the pixel results. |
36 std::string expected_pixel_hash; | 37 std::string expected_pixel_hash; |
37 | 38 |
38 // The initial size of the test window. | 39 // The initial size of the test window. |
39 gfx::Size initial_size; | 40 gfx::Size initial_size; |
| 41 |
| 42 // Memory backing LayoutDumpFlags (shared across all renderers). |
| 43 base::SharedMemoryHandle layout_dump_flags_memory_handle; |
40 }; | 44 }; |
41 | 45 |
42 } // namespace content | 46 } // namespace content |
43 | 47 |
44 #endif // CONTENT_SHELL_COMMON_SHELL_TEST_CONFIGURATION_H_ | 48 #endif // CONTENT_SHELL_COMMON_SHELL_TEST_CONFIGURATION_H_ |
OLD | NEW |