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

Side by Side Diff: chrome/browser/autofill/autofill_server_browsertest.cc

Issue 1138033002: [Autofill] No longer send form name at query time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | components/autofill/core/browser/form_structure.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/macros.h" 5 #include "base/macros.h"
6 #include "base/memory/ref_counted.h" 6 #include "base/memory/ref_counted.h"
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/autofill/personal_data_manager_factory.h" 10 #include "chrome/browser/autofill/personal_data_manager_factory.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 " <input type='submit'>" 128 " <input type='submit'>"
129 "</form>" 129 "</form>"
130 "<script>" 130 "<script>"
131 " document.onclick = function() {" 131 " document.onclick = function() {"
132 " document.getElementById('test_form').submit();" 132 " document.getElementById('test_form').submit();"
133 " };" 133 " };"
134 "</script>"; 134 "</script>";
135 const char kQueryRequest[] = 135 const char kQueryRequest[] =
136 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" 136 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
137 "<autofillquery clientversion=\"6.1.1715.1442/en (GGLL)\">" 137 "<autofillquery clientversion=\"6.1.1715.1442/en (GGLL)\">"
138 "<form signature=\"15916856893790176210\" name=\"test_form\">" 138 "<form signature=\"15916856893790176210\">"
139 "<field signature=\"2594484045\" name=\"one\" type=\"text\"/>" 139 "<field signature=\"2594484045\" name=\"one\" type=\"text\"/>"
140 "<field signature=\"2750915947\" name=\"two\" type=\"text\"/>" 140 "<field signature=\"2750915947\" name=\"two\" type=\"text\"/>"
141 "<field signature=\"3494787134\" name=\"three\" type=\"text\"/>" 141 "<field signature=\"3494787134\" name=\"three\" type=\"text\"/>"
142 "<field signature=\"1236501728\" name=\"four\" type=\"text\"/></form>" 142 "<field signature=\"1236501728\" name=\"four\" type=\"text\"/></form>"
143 "</autofillquery>"; 143 "</autofillquery>";
144 WindowedNetworkObserver query_network_observer(kQueryRequest); 144 WindowedNetworkObserver query_network_observer(kQueryRequest);
145 ui_test_utils::NavigateToURL( 145 ui_test_utils::NavigateToURL(
146 browser(), GURL(std::string(kDataURIPrefix) + kFormHtml)); 146 browser(), GURL(std::string(kDataURIPrefix) + kFormHtml));
147 query_network_observer.Wait(); 147 query_network_observer.Wait();
148 148
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 const char kFormHtml[] = 182 const char kFormHtml[] =
183 "<form id='test_form'>" 183 "<form id='test_form'>"
184 " <input type='text' id='one' autocomplete='username'>" 184 " <input type='text' id='one' autocomplete='username'>"
185 " <input type='text' id='two' autocomplete='off'>" 185 " <input type='text' id='two' autocomplete='off'>"
186 " <input type='password' id='three'>" 186 " <input type='password' id='three'>"
187 " <input type='submit'>" 187 " <input type='submit'>"
188 "</form>"; 188 "</form>";
189 const char kQueryRequest[] = 189 const char kQueryRequest[] =
190 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" 190 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
191 "<autofillquery clientversion=\"6.1.1715.1442/en (GGLL)\">" 191 "<autofillquery clientversion=\"6.1.1715.1442/en (GGLL)\">"
192 "<form signature=\"8900697631820480876\" name=\"test_form\">" 192 "<form signature=\"8900697631820480876\">"
193 "<field signature=\"2594484045\" name=\"one\" type=\"text\"/>" 193 "<field signature=\"2594484045\" name=\"one\" type=\"text\"/>"
194 "<field signature=\"2750915947\" name=\"two\" type=\"text\"/>" 194 "<field signature=\"2750915947\" name=\"two\" type=\"text\"/>"
195 "<field signature=\"116843943\" name=\"three\" type=\"password\"/>" 195 "<field signature=\"116843943\" name=\"three\" type=\"password\"/>"
196 "</form></autofillquery>"; 196 "</form></autofillquery>";
197 WindowedNetworkObserver query_network_observer(kQueryRequest); 197 WindowedNetworkObserver query_network_observer(kQueryRequest);
198 ui_test_utils::NavigateToURL( 198 ui_test_utils::NavigateToURL(
199 browser(), GURL(std::string(kDataURIPrefix) + kFormHtml)); 199 browser(), GURL(std::string(kDataURIPrefix) + kFormHtml));
200 query_network_observer.Wait(); 200 query_network_observer.Wait();
201 } 201 }
202 202
203 } // namespace autofill 203 } // namespace autofill
OLDNEW
« no previous file with comments | « no previous file | components/autofill/core/browser/form_structure.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698