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

Side by Side Diff: third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 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
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/editing/InputMethodController.h" 5 #include "core/editing/InputMethodController.h"
6 6
7 #include <memory>
7 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
8 #include "core/dom/Element.h" 9 #include "core/dom/Element.h"
9 #include "core/dom/Range.h" 10 #include "core/dom/Range.h"
10 #include "core/editing/Editor.h" 11 #include "core/editing/Editor.h"
11 #include "core/editing/FrameSelection.h" 12 #include "core/editing/FrameSelection.h"
12 #include "core/editing/markers/DocumentMarkerController.h" 13 #include "core/editing/markers/DocumentMarkerController.h"
13 #include "core/events/MouseEvent.h" 14 #include "core/events/MouseEvent.h"
14 #include "core/frame/FrameView.h" 15 #include "core/frame/FrameView.h"
15 #include "core/frame/LocalFrame.h" 16 #include "core/frame/LocalFrame.h"
16 #include "core/frame/Settings.h" 17 #include "core/frame/Settings.h"
17 #include "core/html/HTMLInputElement.h" 18 #include "core/html/HTMLInputElement.h"
18 #include "core/testing/DummyPageHolder.h" 19 #include "core/testing/DummyPageHolder.h"
19 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
20 #include <memory>
21 21
22 namespace blink { 22 namespace blink {
23 23
24 class InputMethodControllerTest : public ::testing::Test { 24 class InputMethodControllerTest : public ::testing::Test {
25 protected: 25 protected:
26 InputMethodController& controller() { 26 InputMethodController& controller() {
27 return frame().inputMethodController(); 27 return frame().inputMethodController();
28 } 28 }
29 Document& document() const { return *m_document; } 29 Document& document() const { return *m_document; }
30 LocalFrame& frame() const { return m_dummyPageHolder->frame(); } 30 LocalFrame& frame() const { return m_dummyPageHolder->frame(); }
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 1190
1191 controller().commitText(String("string"), underlines, 0); 1191 controller().commitText(String("string"), underlines, 0);
1192 1192
1193 ASSERT_EQ(1u, document().markers().markers().size()); 1193 ASSERT_EQ(1u, document().markers().markers().size());
1194 1194
1195 EXPECT_EQ(9u, document().markers().markers()[0]->startOffset()); 1195 EXPECT_EQ(9u, document().markers().markers()[0]->startOffset());
1196 EXPECT_EQ(15u, document().markers().markers()[0]->endOffset()); 1196 EXPECT_EQ(15u, document().markers().markers()[0]->endOffset());
1197 } 1197 }
1198 1198
1199 } // namespace blink 1199 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698