| 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" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 SimTest(); | 21 SimTest(); |
| 22 ~SimTest() override; | 22 ~SimTest() override; |
| 23 | 23 |
| 24 void loadURL(const String& url); | 24 void loadURL(const String& url); |
| 25 | 25 |
| 26 Document& document(); | 26 Document& document(); |
| 27 WebViewImpl& webView(); | 27 WebViewImpl& webView(); |
| 28 const SimWebViewClient& webViewClient() const; | 28 const SimWebViewClient& webViewClient() const; |
| 29 SimCompositor& compositor(); | 29 SimCompositor& compositor(); |
| 30 | 30 |
| 31 bool hadFirstLayout() const { return m_webViewClient.hadFirstLayout(); } |
| 32 |
| 31 private: | 33 private: |
| 32 SimNetwork m_network; | 34 SimNetwork m_network; |
| 33 SimCompositor m_compositor; | 35 SimCompositor m_compositor; |
| 34 SimWebViewClient m_webViewClient; | 36 SimWebViewClient m_webViewClient; |
| 35 FrameTestHelpers::WebViewHelper m_webViewHelper; | 37 FrameTestHelpers::WebViewHelper m_webViewHelper; |
| 36 }; | 38 }; |
| 37 | 39 |
| 38 } // namespace blink | 40 } // namespace blink |
| 39 | 41 |
| 40 #endif | 42 #endif |
| OLD | NEW |