| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |