OLD | NEW |
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 const std::vector<CreditCard>& cards); | 125 const std::vector<CreditCard>& cards); |
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* autocomplete, | 134 const char* autocomplete, |
135 unsigned autofill_type, | 135 unsigned autofill_type); |
136 const char* css_classes); | |
137 | 136 |
138 // Fills the query form |field| with the information passed by parameter. If the | 137 // 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 | 138 // 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. | 139 // be set at all, as opposed to being set to empty string. |
141 void FillQueryField(AutofillQueryContents::Form::Field* field, | 140 void FillQueryField(AutofillQueryContents::Form::Field* field, |
142 unsigned signature, | 141 unsigned signature, |
143 const char* name, | 142 const char* name, |
144 const char* control_type); | 143 const char* control_type); |
145 | 144 |
146 } // namespace test | 145 } // namespace test |
147 } // namespace autofill | 146 } // namespace autofill |
148 | 147 |
149 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_TEST_UTILS_H_ | 148 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_TEST_UTILS_H_ |
OLD | NEW |