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

Side by Side Diff: components/autofill/content/renderer/password_form_conversion_utils_browsertest.cc

Issue 231793004: Update a few more references to WebFrame to use WebLocalFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor updates Created 6 years, 8 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 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/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "components/autofill/content/renderer/password_form_conversion_utils.h" 7 #include "components/autofill/content/renderer/password_form_conversion_utils.h"
8 #include "components/autofill/core/common/password_form.h" 8 #include "components/autofill/core/common/password_form.h"
9 #include "content/public/test/render_view_test.h" 9 #include "content/public/test/render_view_test.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "third_party/WebKit/public/platform/WebVector.h" 11 #include "third_party/WebKit/public/platform/WebVector.h"
12 #include "third_party/WebKit/public/web/WebDocument.h" 12 #include "third_party/WebKit/public/web/WebDocument.h"
13 #include "third_party/WebKit/public/web/WebFormElement.h" 13 #include "third_party/WebKit/public/web/WebFormElement.h"
14 #include "third_party/WebKit/public/web/WebLocalFrame.h"
Ilya Sherman 2014/04/09 23:22:35 Ditto.
14 #include "third_party/WebKit/public/web/WebPasswordFormData.h" 15 #include "third_party/WebKit/public/web/WebPasswordFormData.h"
15 16
16 using blink::WebFormElement; 17 using blink::WebFormElement;
17 using blink::WebFrame; 18 using blink::WebFrame;
18 using blink::WebPasswordFormData; 19 using blink::WebPasswordFormData;
19 using blink::WebVector; 20 using blink::WebVector;
20 21
21 namespace autofill { 22 namespace autofill {
22 namespace { 23 namespace {
23 24
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 frame->document().forms(forms); 83 frame->document().forms(forms);
83 ASSERT_EQ(1U, forms.size()); 84 ASSERT_EQ(1U, forms.size());
84 WebPasswordFormData web_password_form(forms[0]); 85 WebPasswordFormData web_password_form(forms[0]);
85 ASSERT_FALSE(web_password_form.isValid()); 86 ASSERT_FALSE(web_password_form.isValid());
86 87
87 scoped_ptr<PasswordForm> password_form = CreatePasswordForm(forms[0]); 88 scoped_ptr<PasswordForm> password_form = CreatePasswordForm(forms[0]);
88 EXPECT_EQ(static_cast<PasswordForm*>(NULL), password_form.get()); 89 EXPECT_EQ(static_cast<PasswordForm*>(NULL), password_form.get());
89 } 90 }
90 91
91 } // namespace autofill 92 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698