Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: chrome/renderer/autofill/password_generation_manager_browsertest.cc

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/renderer/autofill/password_generation_manager.h"
11 #include "chrome/test/base/chrome_render_view_test.h" 10 #include "chrome/test/base/chrome_render_view_test.h"
12 #include "components/autofill/common/autofill_messages.h" 11 #include "components/autofill/common/autofill_messages.h"
12 #include "components/autofill/renderer/password_generation_manager.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
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
OLDNEW
« no previous file with comments | « chrome/renderer/autofill/password_generation_manager.cc ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698