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> |
9 | 10 |
10 namespace blink { | 11 namespace blink { |
11 class WebDocument; | 12 class WebDocument; |
12 } | 13 } |
13 | 14 |
14 namespace autofill { | 15 namespace autofill { |
15 | 16 |
16 class TestPasswordGenerationAgent; | 17 class TestPasswordGenerationAgent; |
17 | 18 |
18 void SetNotBlacklistedMessage(TestPasswordGenerationAgent* generation_agent, | 19 void SetNotBlacklistedMessage(TestPasswordGenerationAgent* generation_agent, |
19 const char* form_str); | 20 const char* form_str); |
20 void SetAccountCreationFormsDetectedMessage(TestPasswordGenerationAgent* agent, | 21 void SetAccountCreationFormsDetectedMessage(TestPasswordGenerationAgent* agent, |
21 blink::WebDocument document, | 22 blink::WebDocument document, |
22 int form_index, | 23 int form_index, |
23 int field_index); | 24 int field_index); |
| 25 |
| 26 std::string CreateScriptToRegisterListeners( |
| 27 const char* const element_name, |
| 28 std::vector<std::string>* variables_to_check); |
| 29 |
24 } // namespace autofill | 30 } // namespace autofill |
25 | 31 |
26 #endif // CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_TEST_UTILS_H_ | 32 #endif // CHROME_RENDERER_AUTOFILL_PASSWORD_GENERATION_TEST_UTILS_H_ |
OLD | NEW |