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

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

Issue 2165573003: Simplify tests by using Web*Impl types directly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/tests/sim/SimTest.h" 5 #include "web/tests/sim/SimTest.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "platform/LayoutTestSupport.h" 8 #include "platform/LayoutTestSupport.h"
9 #include "platform/scroll/ScrollbarTheme.h" 9 #include "platform/scroll/ScrollbarTheme.h"
10 #include "public/platform/WebSecurityOrigin.h" 10 #include "public/platform/WebSecurityOrigin.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 webView().mainFrameImpl()->loadRequest(request); 46 webView().mainFrameImpl()->loadRequest(request);
47 } 47 }
48 48
49 Document& SimTest::document() 49 Document& SimTest::document()
50 { 50 {
51 return *webView().mainFrameImpl()->frame()->document(); 51 return *webView().mainFrameImpl()->frame()->document();
52 } 52 }
53 53
54 WebViewImpl& SimTest::webView() 54 WebViewImpl& SimTest::webView()
55 { 55 {
56 return *m_webViewHelper.webViewImpl(); 56 return *m_webViewHelper.webView();
57 } 57 }
58 58
59 const SimWebViewClient& SimTest::webViewClient() const 59 const SimWebViewClient& SimTest::webViewClient() const
60 { 60 {
61 return m_webViewClient; 61 return m_webViewClient;
62 } 62 }
63 63
64 SimCompositor& SimTest::compositor() 64 SimCompositor& SimTest::compositor()
65 { 65 {
66 return m_compositor; 66 return m_compositor;
67 } 67 }
68 68
69 } // namespace blink 69 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698