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

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

Issue 2073093002: [Password Generation] Sends CSS classes inside autofill proto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed useless FormStructure recreation in FormStructureTest.EncodeUploadRequest_WithCssClasses Created 4 years, 6 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 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_TEST_UTILS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_TEST_UTILS_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_TEST_UTILS_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_TEST_UTILS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 // Fills the upload |field| with the information passed by parameter. If the 127 // Fills the upload |field| with the information passed by parameter. If the
128 // value of a const char* parameter is NULL, the corresponding attribute won't 128 // value of a const char* parameter is NULL, the corresponding attribute won't
129 // be set at all, as opposed to being set to empty string. 129 // be set at all, as opposed to being set to empty string.
130 void FillUploadField(AutofillUploadContents::Field* field, 130 void FillUploadField(AutofillUploadContents::Field* field,
131 unsigned signature, 131 unsigned signature,
132 const char* name, 132 const char* name,
133 const char* control_type, 133 const char* control_type,
134 const char* label, 134 const char* label,
135 const char* autocomplete, 135 const char* autocomplete,
136 unsigned autofill_type); 136 unsigned autofill_type,
137 const char* css_classes);
137 138
138 // Fills the query form |field| with the information passed by parameter. If the 139 // Fills the query form |field| with the information passed by parameter. If the
139 // value of a const char* parameter is NULL, the corresponding attribute won't 140 // value of a const char* parameter is NULL, the corresponding attribute won't
140 // be set at all, as opposed to being set to empty string. 141 // be set at all, as opposed to being set to empty string.
141 void FillQueryField(AutofillQueryContents::Form::Field* field, 142 void FillQueryField(AutofillQueryContents::Form::Field* field,
142 unsigned signature, 143 unsigned signature,
143 const char* name, 144 const char* name,
144 const char* control_type, 145 const char* control_type,
145 const char* label); 146 const char* label);
146 147
147 } // namespace test 148 } // namespace test
148 } // namespace autofill 149 } // namespace autofill
149 150
150 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_TEST_UTILS_H_ 151 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_field.h ('k') | components/autofill/core/browser/autofill_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698