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

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

Issue 6390006: Create autofill subdirectory in chrome/renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Using order Created 9 years, 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/string_util.h" 5 #include "base/string_util.h"
6 #include "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "chrome/renderer/form_manager.h" 7 #include "chrome/renderer/autofill/form_manager.h"
8 #include "chrome/test/render_view_test.h" 8 #include "chrome/test/render_view_test.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement .h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement .h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSelectElement.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSelectElement.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h"
19 #include "webkit/glue/form_data.h" 19 #include "webkit/glue/form_data.h"
20 #include "webkit/glue/web_io_operators.h" 20 #include "webkit/glue/web_io_operators.h"
21 21
22 using WebKit::WebDocument; 22 using WebKit::WebDocument;
23 using WebKit::WebElement; 23 using WebKit::WebElement;
24 using WebKit::WebFormControlElement; 24 using WebKit::WebFormControlElement;
25 using WebKit::WebFormElement; 25 using WebKit::WebFormElement;
26 using WebKit::WebFrame; 26 using WebKit::WebFrame;
27 using WebKit::WebInputElement; 27 using WebKit::WebInputElement;
28 using WebKit::WebSelectElement; 28 using WebKit::WebSelectElement;
29 using WebKit::WebNode; 29 using WebKit::WebNode;
30 using WebKit::WebString; 30 using WebKit::WebString;
31 using WebKit::WebVector; 31 using WebKit::WebVector;
32 32
33 using autofill::FormManager;
34
33 using webkit_glue::FormData; 35 using webkit_glue::FormData;
34 using webkit_glue::FormField; 36 using webkit_glue::FormField;
35 37
36 namespace { 38 namespace {
37 39
38 typedef RenderViewTest FormManagerTest; 40 typedef RenderViewTest FormManagerTest;
39 41
40 // TODO(isherman): Pull this as a named constant from WebKit 42 // TODO(isherman): Pull this as a named constant from WebKit
41 const int kDefaultMaxLength = 0x80000; 43 const int kDefaultMaxLength = 0x80000;
42 44
(...skipping 3161 matching lines...) Expand 10 before | Expand all | Expand 10 after
3204 EXPECT_TRUE(fields[3].StrictlyEqualsHack( 3206 EXPECT_TRUE(fields[3].StrictlyEqualsHack(
3205 FormField(string16(), 3207 FormField(string16(),
3206 ASCIIToUTF16("reply-send"), 3208 ASCIIToUTF16("reply-send"),
3207 string16(), 3209 string16(),
3208 ASCIIToUTF16("submit"), 3210 ASCIIToUTF16("submit"),
3209 0, 3211 0,
3210 false))); 3212 false)));
3211 } 3213 }
3212 3214
3213 } // namespace 3215 } // namespace
OLDNEW
« no previous file with comments | « chrome/renderer/autofill/form_manager.cc ('k') | chrome/renderer/autofill/password_autofill_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698