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

Side by Side Diff: components/test_runner/layout_test_runtime_flags.h

Issue 1835673002: Moving pixel-capturing code from web_test_proxy_base.* into pixel_dump.* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replicating-accept-languages
Patch Set: Rebasing... Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/test_runner/layout_dump.h ('k') | components/test_runner/layout_test_runtime_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698