OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <tuple> | 5 #include <tuple> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "base/strings/stringprintf.h" | |
12 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
13 #include "chrome/test/base/chrome_render_view_test.h" | 12 #include "chrome/test/base/chrome_render_view_test.h" |
14 #include "chrome/test/base/ui_test_utils.h" | 13 #include "chrome/test/base/ui_test_utils.h" |
15 #include "components/autofill/content/common/autofill_driver.mojom.h" | 14 #include "components/autofill/content/common/autofill_driver.mojom.h" |
16 #include "components/autofill/content/renderer/autofill_agent.h" | 15 #include "components/autofill/content/renderer/autofill_agent.h" |
17 #include "components/autofill/core/common/form_data.h" | 16 #include "components/autofill/core/common/form_data.h" |
18 #include "components/autofill/core/common/form_field_data.h" | 17 #include "components/autofill/core/common/form_field_data.h" |
19 #include "content/public/common/content_switches.h" | 18 #include "content/public/common/content_switches.h" |
20 #include "content/public/renderer/render_frame.h" | 19 #include "content/public/renderer/render_frame.h" |
21 #include "content/public/renderer/render_view.h" | 20 #include "content/public/renderer/render_view.h" |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 base::RunLoop().RunUntilIdle(); | 336 base::RunLoop().RunUntilIdle(); |
338 ASSERT_FALSE(fake_driver_.called_field_change()); | 337 ASSERT_FALSE(fake_driver_.called_field_change()); |
339 | 338 |
340 // A user gesture will send a message to the browser. | 339 // A user gesture will send a message to the browser. |
341 EnableUserGestureSimulationForAutofill(); | 340 EnableUserGestureSimulationForAutofill(); |
342 SimulateUserInputChangeForElement(&full_name, "Alice"); | 341 SimulateUserInputChangeForElement(&full_name, "Alice"); |
343 ASSERT_TRUE(fake_driver_.called_field_change()); | 342 ASSERT_TRUE(fake_driver_.called_field_change()); |
344 } | 343 } |
345 | 344 |
346 } // namespace autofill | 345 } // namespace autofill |
OLD | NEW |