OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/strings/string16.h" | 5 #include "base/strings/string16.h" |
6 #include "base/strings/string_util.h" | 6 #include "base/strings/string_util.h" |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "components/autofill/content/renderer/password_form_conversion_utils.h" | 9 #include "components/autofill/content/renderer/password_form_conversion_utils.h" |
10 #include "components/autofill/core/common/password_form.h" | 10 #include "components/autofill/core/common/password_form.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 std::string ProduceHTML() const { | 98 std::string ProduceHTML() const { |
99 return html_ + "</FORM>"; | 99 return html_ + "</FORM>"; |
100 } | 100 } |
101 | 101 |
102 private: | 102 private: |
103 std::string html_; | 103 std::string html_; |
104 | 104 |
105 DISALLOW_COPY_AND_ASSIGN(PasswordFormBuilder); | 105 DISALLOW_COPY_AND_ASSIGN(PasswordFormBuilder); |
106 }; | 106 }; |
107 | 107 |
108 // RenderVIewTest-based tests crash on Android | 108 // RenderViewTest-based tests crash on Android |
109 // http://crbug.com/187500 | 109 // http://crbug.com/187500 |
110 #if defined(OS_ANDROID) | 110 #if defined(OS_ANDROID) |
111 #define MAYBE_PasswordFormConversionUtilsTest \ | 111 #define MAYBE_PasswordFormConversionUtilsTest \ |
112 DISABLED_PasswordFormConversionUtilsTest | 112 DISABLED_PasswordFormConversionUtilsTest |
113 #else | 113 #else |
114 #define MAYBE_PasswordFormConversionUtilsTest PasswordFormConversionUtilsTest | 114 #define MAYBE_PasswordFormConversionUtilsTest PasswordFormConversionUtilsTest |
115 #endif // defined(OS_ANDROID) | 115 #endif // defined(OS_ANDROID) |
116 | 116 |
117 class MAYBE_PasswordFormConversionUtilsTest : public content::RenderViewTest { | 117 class MAYBE_PasswordFormConversionUtilsTest : public content::RenderViewTest { |
118 public: | 118 public: |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 | 692 |
693 scoped_ptr<PasswordForm> login_plus_signup_form; | 693 scoped_ptr<PasswordForm> login_plus_signup_form; |
694 ASSERT_NO_FATAL_FAILURE( | 694 ASSERT_NO_FATAL_FAILURE( |
695 LoadHTMLAndConvertForm(login_plus_signup_html, &login_plus_signup_form)); | 695 LoadHTMLAndConvertForm(login_plus_signup_html, &login_plus_signup_form)); |
696 ASSERT_TRUE(login_plus_signup_form); | 696 ASSERT_TRUE(login_plus_signup_form); |
697 EXPECT_EQ(PasswordForm::Layout::LAYOUT_LOGIN_AND_SIGNUP, | 697 EXPECT_EQ(PasswordForm::Layout::LAYOUT_LOGIN_AND_SIGNUP, |
698 login_plus_signup_form->layout); | 698 login_plus_signup_form->layout); |
699 } | 699 } |
700 | 700 |
701 } // namespace autofill | 701 } // namespace autofill |
OLD | NEW |