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

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

Issue 2655143002: Drop replacesCurrentHistoryItem, NavigationType (Closed)
Patch Set: More compile fixes 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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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/dom/Range.h" 5 #include "core/dom/Range.h"
6 #include "core/frame/FrameView.h" 6 #include "core/frame/FrameView.h"
7 #include "core/input/EventHandler.h" 7 #include "core/input/EventHandler.h"
8 #include "core/page/ChromeClient.h" 8 #include "core/page/ChromeClient.h"
9 #include "core/page/ContextMenuController.h" 9 #include "core/page/ContextMenuController.h"
10 #include "core/page/FocusController.h" 10 #include "core/page/FocusController.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 String LinkSelectionTestBase::getSelectionText() { 109 String LinkSelectionTestBase::getSelectionText() {
110 return m_mainFrame->selectionAsText(); 110 return m_mainFrame->selectionAsText();
111 } 111 }
112 112
113 class TestFrameClient : public FrameTestHelpers::TestWebFrameClient { 113 class TestFrameClient : public FrameTestHelpers::TestWebFrameClient {
114 public: 114 public:
115 MOCK_METHOD4(loadURLExternally, 115 MOCK_METHOD4(loadURLExternally,
116 void(const WebURLRequest&, 116 void(const WebURLRequest&,
117 WebNavigationPolicy, 117 WebNavigationPolicy,
118 const WebString& downloadName, 118 const WebString& downloadName,
119 bool shouldReplaceCurrentEntry)); 119 WebFrameLoadType loadType));
120 }; 120 };
121 121
122 class LinkSelectionTest : public LinkSelectionTestBase { 122 class LinkSelectionTest : public LinkSelectionTestBase {
123 protected: 123 protected:
124 void SetUp() override { 124 void SetUp() override {
125 const char* const kHTMLString = 125 const char* const kHTMLString =
126 "<a id='link' href='foo.com' style='font-size:20pt'>Text to select " 126 "<a id='link' href='foo.com' style='font-size:20pt'>Text to select "
127 "foobar</a>" 127 "foobar</a>"
128 "<div id='page_text'>Lorem ipsum dolor sit amet</div>"; 128 "<div id='page_text'>Lorem ipsum dolor sit amet</div>";
129 129
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 checkMouseClicks(*element, false); 324 checkMouseClicks(*element, false);
325 } 325 }
326 326
327 { 327 {
328 SCOPED_TRACE("Text div, double click"); 328 SCOPED_TRACE("Text div, double click");
329 checkMouseClicks(*element, true); 329 checkMouseClicks(*element, true);
330 } 330 }
331 } 331 }
332 332
333 } // namespace blink 333 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698