| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_AUTOFILL_AUTOFILL_COMMON_TEST_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_COMMON_TEST_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_COMMON_TEST_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_COMMON_TEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 class AutoFillProfile; | 9 class AutoFillProfile; |
| 10 class CreditCard; | 10 class CreditCard; |
| 11 class Profile; | 11 class Profile; |
| 12 | 12 |
| 13 namespace webkit_glue { | 13 namespace webkit_glue { |
| 14 class FormField; | 14 struct FormField; |
| 15 } // namespace webkit_glue | 15 } // namespace webkit_glue |
| 16 | 16 |
| 17 // Common utilities shared amongst AutoFill tests. | 17 // Common utilities shared amongst AutoFill tests. |
| 18 namespace autofill_test { | 18 namespace autofill_test { |
| 19 | 19 |
| 20 // Provides a quick way to populate a FormField with c-strings. | 20 // Provides a quick way to populate a FormField with c-strings. |
| 21 void CreateTestFormField(const char* label, | 21 void CreateTestFormField(const char* label, |
| 22 const char* name, | 22 const char* name, |
| 23 const char* value, | 23 const char* value, |
| 24 const char* type, | 24 const char* type, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 49 const char* expiration_month, const char* expiration_year); | 49 const char* expiration_month, const char* expiration_year); |
| 50 | 50 |
| 51 // TODO(isherman): We should do this automatically for all tests, not manually | 51 // TODO(isherman): We should do this automatically for all tests, not manually |
| 52 // on a per-test basis: http://crbug.com/57221 | 52 // on a per-test basis: http://crbug.com/57221 |
| 53 // Disables or mocks out code that would otherwise reach out to system services. | 53 // Disables or mocks out code that would otherwise reach out to system services. |
| 54 void DisableSystemServices(Profile* profile); | 54 void DisableSystemServices(Profile* profile); |
| 55 | 55 |
| 56 } // namespace autofill_test | 56 } // namespace autofill_test |
| 57 | 57 |
| 58 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_COMMON_TEST_H_ | 58 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_COMMON_TEST_H_ |
| OLD | NEW |