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

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

Issue 2848513002: Introduce the abstract class WebViewBase, to decouple WebViewImpl. (Closed)
Patch Set: Fix typo. Created 3 years, 7 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "core/dom/ClientRect.h" 31 #include "core/dom/ClientRect.h"
32 #include "core/dom/ClientRectList.h" 32 #include "core/dom/ClientRectList.h"
33 #include "core/dom/Document.h" 33 #include "core/dom/Document.h"
34 #include "core/dom/Element.h" 34 #include "core/dom/Element.h"
35 #include "core/dom/StaticNodeList.h" 35 #include "core/dom/StaticNodeList.h"
36 #include "core/dom/shadow/ShadowRoot.h" 36 #include "core/dom/shadow/ShadowRoot.h"
37 #include "core/exported/WebViewBase.h"
37 #include "core/frame/FrameView.h" 38 #include "core/frame/FrameView.h"
38 #include "core/frame/LocalFrame.h" 39 #include "core/frame/LocalFrame.h"
39 #include "core/html/HTMLIFrameElement.h" 40 #include "core/html/HTMLIFrameElement.h"
40 #include "core/input/EventHandler.h" 41 #include "core/input/EventHandler.h"
41 #include "core/layout/HitTestResult.h" 42 #include "core/layout/HitTestResult.h"
42 #include "core/layout/LayoutTreeAsText.h" 43 #include "core/layout/LayoutTreeAsText.h"
43 #include "core/layout/api/LayoutViewItem.h" 44 #include "core/layout/api/LayoutViewItem.h"
44 #include "platform/testing/URLTestHelpers.h" 45 #include "platform/testing/URLTestHelpers.h"
45 #include "platform/testing/UnitTestHelpers.h" 46 #include "platform/testing/UnitTestHelpers.h"
46 #include "public/platform/Platform.h" 47 #include "public/platform/Platform.h"
47 #include "public/platform/WebTouchEvent.h" 48 #include "public/platform/WebTouchEvent.h"
48 #include "public/platform/WebURLLoaderMockFactory.h" 49 #include "public/platform/WebURLLoaderMockFactory.h"
49 #include "public/web/WebDocument.h" 50 #include "public/web/WebDocument.h"
50 #include "public/web/WebFrame.h" 51 #include "public/web/WebFrame.h"
51 #include "public/web/WebHitTestResult.h" 52 #include "public/web/WebHitTestResult.h"
52 #include "public/web/WebTouchAction.h" 53 #include "public/web/WebTouchAction.h"
53 #include "public/web/WebView.h" 54 #include "public/web/WebView.h"
54 #include "public/web/WebViewClient.h" 55 #include "public/web/WebViewClient.h"
55 #include "public/web/WebWidgetClient.h" 56 #include "public/web/WebWidgetClient.h"
56 #include "testing/gtest/include/gtest/gtest.h" 57 #include "testing/gtest/include/gtest/gtest.h"
57 #include "web/WebViewImpl.h"
58 #include "web/tests/FrameTestHelpers.h" 58 #include "web/tests/FrameTestHelpers.h"
59 59
60 using blink::testing::RunPendingTasks; 60 using blink::testing::RunPendingTasks;
61 61
62 namespace blink { 62 namespace blink {
63 63
64 class TouchActionTrackingWebWidgetClient 64 class TouchActionTrackingWebWidgetClient
65 : public FrameTestHelpers::TestWebWidgetClient { 65 : public FrameTestHelpers::TestWebWidgetClient {
66 public: 66 public:
67 TouchActionTrackingWebWidgetClient() 67 TouchActionTrackingWebWidgetClient()
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 416
417 TEST_F(TouchActionTest, ShadowDOM) { 417 TEST_F(TouchActionTest, ShadowDOM) {
418 RunShadowDOMTest("touch-action-shadow-dom.html"); 418 RunShadowDOMTest("touch-action-shadow-dom.html");
419 } 419 }
420 420
421 TEST_F(TouchActionTest, Pan) { 421 TEST_F(TouchActionTest, Pan) {
422 RunTouchActionTest("touch-action-pan.html"); 422 RunTouchActionTest("touch-action-pan.html");
423 } 423 }
424 424
425 } // namespace blink 425 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698