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

Side by Side Diff: components/autofill/core/browser/autofill_test_utils.cc

Issue 2640783002: [Password Generation] Send id attribute to server for HTML based form classifier (Closed)
Patch Set: Fixed failed test Created 3 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/autofill/core/browser/autofill_test_utils.h" 5 #include "components/autofill/core/browser/autofill_test_utils.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/guid.h" 9 #include "base/guid.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 table->UnmaskServerCreditCard(card, card.number()); 335 table->UnmaskServerCreditCard(card, card.number());
336 } 336 }
337 } 337 }
338 338
339 void FillUploadField(AutofillUploadContents::Field* field, 339 void FillUploadField(AutofillUploadContents::Field* field,
340 unsigned signature, 340 unsigned signature,
341 const char* name, 341 const char* name,
342 const char* control_type, 342 const char* control_type,
343 const char* autocomplete, 343 const char* autocomplete,
344 unsigned autofill_type, 344 unsigned autofill_type) {
345 const char* css_classes) {
346 field->set_signature(signature); 345 field->set_signature(signature);
347 if (name) 346 if (name)
348 field->set_name(name); 347 field->set_name(name);
349 if (control_type) 348 if (control_type)
350 field->set_type(control_type); 349 field->set_type(control_type);
351 if (autocomplete) 350 if (autocomplete)
352 field->set_autocomplete(autocomplete); 351 field->set_autocomplete(autocomplete);
353 field->set_autofill_type(autofill_type); 352 field->set_autofill_type(autofill_type);
354 if (css_classes)
355 field->set_css_classes(css_classes);
356 } 353 }
357 354
358 void FillQueryField(AutofillQueryContents::Form::Field* field, 355 void FillQueryField(AutofillQueryContents::Form::Field* field,
359 unsigned signature, 356 unsigned signature,
360 const char* name, 357 const char* name,
361 const char* control_type) { 358 const char* control_type) {
362 field->set_signature(signature); 359 field->set_signature(signature);
363 if (name) 360 if (name)
364 field->set_name(name); 361 field->set_name(name);
365 if (control_type) 362 if (control_type)
366 field->set_type(control_type); 363 field->set_type(control_type);
367 } 364 }
368 365
369 } // namespace test 366 } // namespace test
370 } // namespace autofill 367 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698