OLD | NEW |
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 #ifndef SimTest_h | 5 #ifndef SimTest_h |
6 #define SimTest_h | 6 #define SimTest_h |
7 | 7 |
8 #include "web/tests/FrameTestHelpers.h" | 8 #include "web/tests/FrameTestHelpers.h" |
9 #include "web/tests/sim/SimCompositor.h" | 9 #include "web/tests/sim/SimCompositor.h" |
10 #include "web/tests/sim/SimNetwork.h" | 10 #include "web/tests/sim/SimNetwork.h" |
| 11 #include "web/tests/sim/SimPage.h" |
11 #include "web/tests/sim/SimWebViewClient.h" | 12 #include "web/tests/sim/SimWebViewClient.h" |
12 #include <gtest/gtest.h> | 13 #include <gtest/gtest.h> |
13 | 14 |
14 namespace blink { | 15 namespace blink { |
15 | 16 |
16 class WebViewImpl; | 17 class WebViewImpl; |
17 class Document; | 18 class Document; |
| 19 class LocalDOMWindow; |
18 | 20 |
19 class SimTest : public ::testing::Test { | 21 class SimTest : public ::testing::Test { |
20 protected: | 22 protected: |
21 SimTest(); | 23 SimTest(); |
22 ~SimTest() override; | 24 ~SimTest() override; |
23 | 25 |
24 void loadURL(const String& url); | 26 void loadURL(const String& url); |
25 | 27 |
| 28 LocalDOMWindow& window(); |
| 29 SimPage& page(); |
26 Document& document(); | 30 Document& document(); |
27 WebViewImpl& webView(); | 31 WebViewImpl& webView(); |
28 const SimWebViewClient& webViewClient() const; | 32 const SimWebViewClient& webViewClient() const; |
29 SimCompositor& compositor(); | 33 SimCompositor& compositor(); |
30 | 34 |
31 private: | 35 private: |
32 SimNetwork m_network; | 36 SimNetwork m_network; |
33 SimCompositor m_compositor; | 37 SimCompositor m_compositor; |
34 SimWebViewClient m_webViewClient; | 38 SimWebViewClient m_webViewClient; |
| 39 SimPage m_page; |
35 FrameTestHelpers::WebViewHelper m_webViewHelper; | 40 FrameTestHelpers::WebViewHelper m_webViewHelper; |
36 }; | 41 }; |
37 | 42 |
38 } // namespace blink | 43 } // namespace blink |
39 | 44 |
40 #endif | 45 #endif |
OLD | NEW |