OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "base/base_switches.h" | 5 #include "base/base_switches.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 // Submit the form, using a simulated mouse click because form submissions not | 157 // Submit the form, using a simulated mouse click because form submissions not |
158 // triggered by user gestures are ignored. Expect an upload request upon form | 158 // triggered by user gestures are ignored. Expect an upload request upon form |
159 // submission, with form fields matching those from the query request. | 159 // submission, with form fields matching those from the query request. |
160 const char kUploadRequest[] = | 160 const char kUploadRequest[] = |
161 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" | 161 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" |
162 "<autofillupload clientversion=\"6.1.1715.1442/en (GGLL)\"" | 162 "<autofillupload clientversion=\"6.1.1715.1442/en (GGLL)\"" |
163 " formsignature=\"15916856893790176210\"" | 163 " formsignature=\"15916856893790176210\"" |
164 " autofillused=\"false\"" | 164 " autofillused=\"false\"" |
165 " datapresent=\"1f7e0003780000080004\"" | 165 " datapresent=\"1f7e0003780000080004\"" |
166 " actionsignature=\"15724779818122431245\">" | 166 " actionsignature=\"15724779818122431245\" formname=\"test_form\">" |
167 "<field signature=\"2594484045\" name=\"one\" type=\"text\"" | 167 "<field signature=\"2594484045\" name=\"one\" type=\"text\"" |
168 " autofilltype=\"2\"/>" | 168 " autofilltype=\"2\"/>" |
169 "<field signature=\"2750915947\" name=\"two\" type=\"text\"" | 169 "<field signature=\"2750915947\" name=\"two\" type=\"text\"" |
170 " autocomplete=\"off\" autofilltype=\"2\"/>" | 170 " autocomplete=\"off\" autofilltype=\"2\"/>" |
171 "<field signature=\"3494787134\" name=\"three\" type=\"text\"" | 171 "<field signature=\"3494787134\" name=\"three\" type=\"text\"" |
172 " autofilltype=\"2\"/>" | 172 " autofilltype=\"2\"/>" |
173 "<field signature=\"1236501728\" name=\"four\" type=\"text\"" | 173 "<field signature=\"1236501728\" name=\"four\" type=\"text\"" |
174 " autocomplete=\"off\" autofilltype=\"2\"/>" | 174 " autocomplete=\"off\" autofilltype=\"2\"/>" |
175 "</autofillupload>"; | 175 "</autofillupload>"; |
176 | 176 |
(...skipping 26 matching lines...) Expand all Loading... |
203 "<field signature=\"2750915947\" name=\"two\" type=\"text\"/>" | 203 "<field signature=\"2750915947\" name=\"two\" type=\"text\"/>" |
204 "<field signature=\"116843943\" name=\"three\" type=\"password\"/>" | 204 "<field signature=\"116843943\" name=\"three\" type=\"password\"/>" |
205 "</form></autofillquery>"; | 205 "</form></autofillquery>"; |
206 WindowedNetworkObserver query_network_observer(kQueryRequest); | 206 WindowedNetworkObserver query_network_observer(kQueryRequest); |
207 ui_test_utils::NavigateToURL( | 207 ui_test_utils::NavigateToURL( |
208 browser(), GURL(std::string(kDataURIPrefix) + kFormHtml)); | 208 browser(), GURL(std::string(kDataURIPrefix) + kFormHtml)); |
209 query_network_observer.Wait(); | 209 query_network_observer.Wait(); |
210 } | 210 } |
211 | 211 |
212 } // namespace autofill | 212 } // namespace autofill |
OLD | NEW |