OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_RENDERER_AUTOFILL_PASSWORD_GENERATION_TEST_UTILS_H_ | 5 #ifndef CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_TEST_UTILS_H_ |
6 #define CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_TEST_UTILS_H_ | 6 #define CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_TEST_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
| 9 #include <vector> |
| 10 |
| 11 #include "base/strings/string16.h" |
9 | 12 |
10 namespace blink { | 13 namespace blink { |
11 class WebDocument; | 14 class WebDocument; |
12 } | 15 } |
13 | 16 |
14 namespace autofill { | 17 namespace autofill { |
15 | 18 |
16 class TestPasswordGenerationAgent; | 19 class TestPasswordGenerationAgent; |
17 | 20 |
18 void SetNotBlacklistedMessage(TestPasswordGenerationAgent* generation_agent, | 21 void SetNotBlacklistedMessage(TestPasswordGenerationAgent* generation_agent, |
19 const char* form_str); | 22 const char* form_str); |
20 void SetAccountCreationFormsDetectedMessage(TestPasswordGenerationAgent* agent, | 23 void SetAccountCreationFormsDetectedMessage(TestPasswordGenerationAgent* agent, |
21 blink::WebDocument document, | 24 blink::WebDocument document, |
22 int form_index, | 25 int form_index, |
23 int field_index); | 26 int field_index); |
| 27 |
| 28 std::string CreateScriptToRegisterListeners( |
| 29 const char* const element_name, |
| 30 std::vector<base::string16>* variables_to_check); |
| 31 |
24 } // namespace autofill | 32 } // namespace autofill |
25 | 33 |
26 #endif // CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_TEST_UTILS_H_ | 34 #endif // CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_TEST_UTILS_H_ |
OLD | NEW |