| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/utf_string_conversions.h" | 5 #include "base/utf_string_conversions.h" |
| 6 #include "chrome/common/autofill_messages.h" | 6 #include "chrome/common/autofill_messages.h" |
| 7 #include "chrome/test/base/chrome_render_view_test.h" | 7 #include "chrome/test/base/chrome_render_view_test.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 12 #include "webkit/glue/form_data.h" | 12 #include "webkit/glue/form_data.h" |
| 13 #include "webkit/glue/form_field.h" | 13 #include "webkit/glue/form_field.h" |
| 14 | 14 |
| 15 using WebKit::WebDocument; | 15 using WebKit::WebDocument; |
| 16 using WebKit::WebFrame; | 16 using WebKit::WebFrame; |
| 17 using WebKit::WebInputElement; | 17 using WebKit::WebInputElement; |
| 18 using WebKit::WebString; | 18 using WebKit::WebString; |
| 19 using webkit_glue::FormData; | 19 using webkit_glue::FormData; |
| 20 using webkit_glue::FormField; | 20 using webkit_glue::FormField; |
| 21 | 21 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 const IPC::Message* message2 = | 161 const IPC::Message* message2 = |
| 162 render_thread_->sink().GetUniqueMessageMatching( | 162 render_thread_->sink().GetUniqueMessageMatching( |
| 163 AutofillHostMsg_FillAutofillFormData::ID); | 163 AutofillHostMsg_FillAutofillFormData::ID); |
| 164 | 164 |
| 165 // No message should be sent in this case. |firstname| is filled directly. | 165 // No message should be sent in this case. |firstname| is filled directly. |
| 166 ASSERT_EQ(static_cast<IPC::Message*>(NULL), message2); | 166 ASSERT_EQ(static_cast<IPC::Message*>(NULL), message2); |
| 167 EXPECT_EQ(firstname.value(), WebKit::WebString::fromUTF8("David")); | 167 EXPECT_EQ(firstname.value(), WebKit::WebString::fromUTF8("David")); |
| 168 } | 168 } |
| 169 | 169 |
| 170 } // namespace autofill | 170 } // namespace autofill |
| OLD | NEW |