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

Side by Side Diff: third_party/WebKit/Source/web/tests/TextFinderTest.cpp

Issue 2828493003: Move FindInPagesCoordinates.* from web/ -> core/editing/. (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
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "web/TextFinder.h" 5 #include "web/TextFinder.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/dom/NodeList.h" 9 #include "core/dom/NodeList.h"
10 #include "core/dom/Range.h" 10 #include "core/dom/Range.h"
11 #include "core/dom/shadow/ShadowRoot.h" 11 #include "core/dom/shadow/ShadowRoot.h"
12 #include "core/editing/FindInPageCoordinates.h"
12 #include "core/frame/FrameView.h" 13 #include "core/frame/FrameView.h"
13 #include "core/frame/VisualViewport.h" 14 #include "core/frame/VisualViewport.h"
14 #include "core/html/HTMLElement.h" 15 #include "core/html/HTMLElement.h"
15 #include "core/layout/TextAutosizer.h" 16 #include "core/layout/TextAutosizer.h"
16 #include "core/page/Page.h" 17 #include "core/page/Page.h"
17 #include "platform/testing/TestingPlatformSupport.h" 18 #include "platform/testing/TestingPlatformSupport.h"
18 #include "platform/testing/UnitTestHelpers.h" 19 #include "platform/testing/UnitTestHelpers.h"
19 #include "public/platform/Platform.h" 20 #include "public/platform/Platform.h"
20 #include "public/web/WebDocument.h" 21 #include "public/web/WebDocument.h"
21 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
22 #include "web/FindInPageCoordinates.h"
23 #include "web/WebLocalFrameImpl.h" 23 #include "web/WebLocalFrameImpl.h"
24 #include "web/tests/FrameTestHelpers.h" 24 #include "web/tests/FrameTestHelpers.h"
25 25
26 using blink::testing::RunPendingTasks; 26 using blink::testing::RunPendingTasks;
27 27
28 namespace blink { 28 namespace blink {
29 29
30 class TextFinderTest : public ::testing::Test { 30 class TextFinderTest : public ::testing::Test {
31 protected: 31 protected:
32 TextFinderTest() { 32 TextFinderTest() {
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 // of the TimeProxyPlatform timer is greater than timeout threshold. 617 // of the TimeProxyPlatform timer is greater than timeout threshold.
618 GetTextFinder().StartScopingStringMatches(identifier, search_pattern, 618 GetTextFinder().StartScopingStringMatches(identifier, search_pattern,
619 find_options); 619 find_options);
620 while (GetTextFinder().ScopingInProgress()) 620 while (GetTextFinder().ScopingInProgress())
621 RunPendingTasks(); 621 RunPendingTasks();
622 622
623 EXPECT_EQ(4, GetTextFinder().TotalMatchCount()); 623 EXPECT_EQ(4, GetTextFinder().TotalMatchCount());
624 } 624 }
625 625
626 } // namespace blink 626 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698