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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 personal_data_changed_ = true; | 94 personal_data_changed_ = true; |
95 } | 95 } |
96 | 96 |
97 private: | 97 private: |
98 bool personal_data_changed_; | 98 bool personal_data_changed_; |
99 bool has_run_message_loop_; | 99 bool has_run_message_loop_; |
100 }; | 100 }; |
101 | 101 |
102 class AutofillTest : public InProcessBrowserTest { | 102 class AutofillTest : public InProcessBrowserTest { |
103 protected: | 103 protected: |
104 AutofillTest() { | 104 AutofillTest() {} |
105 EnableDOMAutomation(); | |
106 } | |
107 | 105 |
108 void CreateTestProfile() { | 106 void CreateTestProfile() { |
109 autofill_test::DisableSystemServices(browser()->profile()); | 107 autofill_test::DisableSystemServices(browser()->profile()); |
110 | 108 |
111 AutofillProfile profile; | 109 AutofillProfile profile; |
112 autofill_test::SetProfileInfo( | 110 autofill_test::SetProfileInfo( |
113 &profile, "Milton", "C.", "Waddams", | 111 &profile, "Milton", "C.", "Waddams", |
114 "red.swingline@initech.com", "Initech", "4120 Freidrich Lane", | 112 "red.swingline@initech.com", "Initech", "4120 Freidrich Lane", |
115 "Basement", "Austin", "Texas", "78744", "United States", "5125551234"); | 113 "Basement", "Austin", "Texas", "78744", "United States", "5125551234"); |
116 | 114 |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 // Once click the text field, it starts again. | 700 // Once click the text field, it starts again. |
703 ASSERT_TRUE(ui_test_utils::ExecuteJavaScript( | 701 ASSERT_TRUE(ui_test_utils::ExecuteJavaScript( |
704 render_view_host(), L"", | 702 render_view_host(), L"", |
705 L"cr.googleTranslate.onTranslateElementLoad();")); | 703 L"cr.googleTranslate.onTranslateElementLoad();")); |
706 | 704 |
707 // Simulate the render notifying the translation has been done. | 705 // Simulate the render notifying the translation has been done. |
708 translation_observer.Wait(); | 706 translation_observer.Wait(); |
709 | 707 |
710 TryBasicFormFill(); | 708 TryBasicFormFill(); |
711 } | 709 } |
OLD | NEW |