| 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 |
| 94 // Contents of Accept-Language HTTP header requested by the test. | 101 // Contents of Accept-Language HTTP header requested by the test. |
| 95 DEFINE_STRING_LAYOUT_TEST_RUNTIME_FLAG(accept_languages) | 102 DEFINE_STRING_LAYOUT_TEST_RUNTIME_FLAG(accept_languages) |
| 96 | 103 |
| 97 #undef DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG | 104 #undef DEFINE_BOOL_LAYOUT_TEST_RUNTIME_FLAG |
| 98 #undef DEFINE_STRING_LAYOUT_TEST_RUNTIME_FLAG | 105 #undef DEFINE_STRING_LAYOUT_TEST_RUNTIME_FLAG |
| 99 | 106 |
| 100 // Reports whether recursing over child frames is necessary. | 107 // Reports whether recursing over child frames is necessary. |
| 101 bool dump_child_frames() const { | 108 bool dump_child_frames() const { |
| 102 if (dump_as_text()) | 109 if (dump_as_text()) |
| 103 return dump_child_frames_as_text(); | 110 return dump_child_frames_as_text(); |
| 104 else if (dump_as_markup()) | 111 else if (dump_as_markup()) |
| 105 return dump_child_frames_as_markup(); | 112 return dump_child_frames_as_markup(); |
| 106 else | 113 else |
| 107 return dump_child_frame_scroll_positions(); | 114 return dump_child_frame_scroll_positions(); |
| 108 } | 115 } |
| 109 | 116 |
| 110 private: | 117 private: |
| 111 TrackedDictionary dict_; | 118 TrackedDictionary dict_; |
| 112 | 119 |
| 113 DISALLOW_COPY_AND_ASSIGN(LayoutTestRuntimeFlags); | 120 DISALLOW_COPY_AND_ASSIGN(LayoutTestRuntimeFlags); |
| 114 }; | 121 }; |
| 115 | 122 |
| 116 } // namespace test_runner | 123 } // namespace test_runner |
| 117 | 124 |
| 118 #endif // COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ | 125 #endif // COMPONENTS_TEST_RUNNER_LAYOUT_TEST_RUNTIME_FLAGS_H_ |
| OLD | NEW |