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

Side by Side Diff: third_party/WebKit/Source/core/html/TextControlElementTest.cpp

Issue 2812013004: Rewrite references to "wtf/" to "platform/wtf/" in core/{dom,html,xml}. (Closed)
Patch Set: Created 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "core/html/TextControlElement.h" 5 #include "core/html/TextControlElement.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/editing/FrameSelection.h" 9 #include "core/editing/FrameSelection.h"
10 #include "core/frame/FrameView.h" 10 #include "core/frame/FrameView.h"
11 #include "core/html/HTMLInputElement.h" 11 #include "core/html/HTMLInputElement.h"
12 #include "core/html/HTMLTextAreaElement.h" 12 #include "core/html/HTMLTextAreaElement.h"
13 #include "core/loader/EmptyClients.h" 13 #include "core/loader/EmptyClients.h"
14 #include "core/testing/DummyPageHolder.h" 14 #include "core/testing/DummyPageHolder.h"
15 #include "platform/testing/UnitTestHelpers.h" 15 #include "platform/testing/UnitTestHelpers.h"
16 #include "platform/wtf/PtrUtil.h"
16 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
17 #include "wtf/PtrUtil.h"
18 18
19 namespace blink { 19 namespace blink {
20 20
21 class TextControlElementTest : public ::testing::Test { 21 class TextControlElementTest : public ::testing::Test {
22 protected: 22 protected:
23 void SetUp() override; 23 void SetUp() override;
24 24
25 DummyPageHolder& Page() const { return *dummy_page_holder_; } 25 DummyPageHolder& Page() const { return *dummy_page_holder_; }
26 Document& GetDocument() const { return *document_; } 26 Document& GetDocument() const { return *document_; }
27 TextControlElement& TextControl() const { return *text_control_; } 27 TextControlElement& TextControl() const { return *text_control_; }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 HTMLInputElement* input = 81 HTMLInputElement* input =
82 toHTMLInputElement(GetDocument().GetElementById("input")); 82 toHTMLInputElement(GetDocument().GetElementById("input"));
83 input->setValue("Hello"); 83 input->setValue("Hello");
84 HTMLElement* inner_editor = input->InnerEditorElement(); 84 HTMLElement* inner_editor = input->InnerEditorElement();
85 EXPECT_EQ(5u, TextControlElement::IndexForPosition( 85 EXPECT_EQ(5u, TextControlElement::IndexForPosition(
86 inner_editor, 86 inner_editor,
87 Position(inner_editor, PositionAnchorType::kAfterAnchor))); 87 Position(inner_editor, PositionAnchorType::kAfterAnchor)));
88 } 88 }
89 89
90 } // namespace blink 90 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/TextControlElement.cpp ('k') | third_party/WebKit/Source/core/html/TimeRanges.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698