| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ | 6 #define COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // don't actually want to open the mail program. | 84 // don't actually want to open the mail program. |
| 85 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(policy_delegate_enabled) | 85 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(policy_delegate_enabled) |
| 86 | 86 |
| 87 // Toggles the behavior of the policy delegate. If true, then navigations | 87 // Toggles the behavior of the policy delegate. If true, then navigations |
| 88 // will be allowed. Otherwise, they will be ignored (dropped). | 88 // will be allowed. Otherwise, they will be ignored (dropped). |
| 89 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(policy_delegate_is_permissive) | 89 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(policy_delegate_is_permissive) |
| 90 | 90 |
| 91 // If true, the policy delegate will signal layout test completion. | 91 // If true, the policy delegate will signal layout test completion. |
| 92 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(policy_delegate_should_notify_done) | 92 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(policy_delegate_should_notify_done) |
| 93 | 93 |
| 94 // If true, the test_shell will draw the bounds of the current selection rect | |
| 95 // taking possible transforms of the selection rect into account. | |
| 96 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_selection_rect) | |
| 97 | |
| 98 // If true, the test_shell will dump the drag image as pixel results. | |
| 99 DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG(dump_drag_image) | |
| 100 | |
| 101 // Contents of Accept-Language HTTP header requested by the test. | 94 // Contents of Accept-Language HTTP header requested by the test. |
| 102 DEFINE_STRING_LAYOUT_TEST_RUNTIME_FLAG(accept_languages) | 95 DEFINE_STRING_LAYOUT_TEST_RUNTIME_FLAG(accept_languages) |
| 103 | 96 |
| 104 #undef DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG | 97 #undef DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG |
| 105 #undef DEFINE_STRING_LAYOUT_TEST_RUNTIME_FLAG | 98 #undef DEFINE_STRING_LAYOUT_TEST_RUNTIME_FLAG |
| 106 | 99 |
| 107 // Reports whether recursing over child frames is necessary. | 100 // Reports whether recursing over child frames is necessary. |
| 108 bool dump_child_frames() const { | 101 bool dump_child_frames() const { |
| 109 if (dump_as_text()) | 102 if (dump_as_text()) |
| 110 return dump_child_frames_as_text(); | 103 return dump_child_frames_as_text(); |
| 111 else if (dump_as_markup()) | 104 else if (dump_as_markup()) |
| 112 return dump_child_frames_as_markup(); | 105 return dump_child_frames_as_markup(); |
| 113 else | 106 else |
| 114 return dump_child_frame_scroll_positions(); | 107 return dump_child_frame_scroll_positions(); |
| 115 } | 108 } |
| 116 | 109 |
| 117 private: | 110 private: |
| 118 TrackedDictionary dict_; | 111 TrackedDictionary dict_; |
| 119 | 112 |
| 120 DISALLOW_COPY_AND_ASSIGN(LayoutTestRuntimeFlags); | 113 DISALLOW_COPY_AND_ASSIGN(LayoutTestRuntimeFlags); |
| 121 }; | 114 }; |
| 122 | 115 |
| 123 } // namespace test_runner | 116 } // namespace test_runner |
| 124 | 117 |
| 125 #endif // COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ | 118 #endif // COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ |
| OLD | NEW |