| 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.h> | 5 #include <string.h> |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/common/autofill_messages.h" | |
| 11 #include "chrome/renderer/autofill/password_generation_manager.h" | 10 #include "chrome/renderer/autofill/password_generation_manager.h" |
| 12 #include "chrome/test/base/chrome_render_view_test.h" | 11 #include "chrome/test/base/chrome_render_view_test.h" |
| 12 #include "components/autofill/common/autofill_messages.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" |
| 17 | 17 |
| 18 using WebKit::WebDocument; | 18 using WebKit::WebDocument; |
| 19 using WebKit::WebElement; | 19 using WebKit::WebElement; |
| 20 using WebKit::WebInputElement; | 20 using WebKit::WebInputElement; |
| 21 using WebKit::WebNode; | 21 using WebKit::WebNode; |
| 22 using WebKit::WebString; | 22 using WebKit::WebString; |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 ASSERT_FALSE(element.isNull()); | 270 ASSERT_FALSE(element.isNull()); |
| 271 first_password_element = element.to<WebInputElement>(); | 271 first_password_element = element.to<WebInputElement>(); |
| 272 EXPECT_TRUE(DecorationIsVisible(&first_password_element)); | 272 EXPECT_TRUE(DecorationIsVisible(&first_password_element)); |
| 273 SimulateClickOnDecoration(&first_password_element); | 273 SimulateClickOnDecoration(&first_password_element); |
| 274 EXPECT_EQ(2u, generation_manager_->messages().size()); | 274 EXPECT_EQ(2u, generation_manager_->messages().size()); |
| 275 EXPECT_EQ(AutofillHostMsg_ShowPasswordGenerationPopup::ID, | 275 EXPECT_EQ(AutofillHostMsg_ShowPasswordGenerationPopup::ID, |
| 276 generation_manager_->messages()[1]->type()); | 276 generation_manager_->messages()[1]->type()); |
| 277 } | 277 } |
| 278 | 278 |
| 279 } // namespace autofill | 279 } // namespace autofill |
| OLD | NEW |