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

Side by Side Diff: chrome/renderer/form_manager_unittest.cc

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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
« no previous file with comments | « chrome/renderer/form_manager.cc ('k') | chrome/renderer/localized_error.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/renderer/form_manager.h" 7 #include "chrome/renderer/form_manager.h"
7 #include "chrome/test/render_view_test.h" 8 #include "chrome/test/render_view_test.h"
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h" 10 #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h"
10 #include "third_party/WebKit/WebKit/chromium/public/WebElement.h" 11 #include "third_party/WebKit/WebKit/chromium/public/WebElement.h"
11 #include "third_party/WebKit/WebKit/chromium/public/WebFormControlElement.h" 12 #include "third_party/WebKit/WebKit/chromium/public/WebFormControlElement.h"
12 #include "third_party/WebKit/WebKit/chromium/public/WebFormElement.h" 13 #include "third_party/WebKit/WebKit/chromium/public/WebFormElement.h"
13 #include "third_party/WebKit/WebKit/chromium/public/WebInputElement.h" 14 #include "third_party/WebKit/WebKit/chromium/public/WebInputElement.h"
14 #include "third_party/WebKit/WebKit/chromium/public/WebNode.h" 15 #include "third_party/WebKit/WebKit/chromium/public/WebNode.h"
15 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" 16 #include "third_party/WebKit/WebKit/chromium/public/WebString.h"
(...skipping 2429 matching lines...) Expand 10 before | Expand all | Expand 10 after
2445 2446
2446 WebElement e = web_frame->document().getElementById("firstname"); 2447 WebElement e = web_frame->document().getElementById("firstname");
2447 WebFormControlElement firstname = e.to<WebFormControlElement>(); 2448 WebFormControlElement firstname = e.to<WebFormControlElement>();
2448 2449
2449 // Hidden form control element should not have a label set. 2450 // Hidden form control element should not have a label set.
2450 FormManager form_manager; 2451 FormManager form_manager;
2451 EXPECT_EQ(string16(), form_manager.LabelForElement(firstname)); 2452 EXPECT_EQ(string16(), form_manager.LabelForElement(firstname));
2452 } 2453 }
2453 2454
2454 } // namespace 2455 } // namespace
OLDNEW
« no previous file with comments | « chrome/renderer/form_manager.cc ('k') | chrome/renderer/localized_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698