Chromium Code Reviews| 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 <gtest/gtest.h> | 8 #include <gtest/gtest.h> |
| 9 #include "web/tests/FrameTestHelpers.h" | 9 #include "web/tests/FrameTestHelpers.h" |
| 10 #include "web/tests/sim/SimCompositor.h" | 10 #include "web/tests/sim/SimCompositor.h" |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 28 void LoadURL(const String& url); | 28 void LoadURL(const String& url); |
| 29 | 29 |
| 30 LocalDOMWindow& Window(); | 30 LocalDOMWindow& Window(); |
| 31 SimPage& Page(); | 31 SimPage& Page(); |
| 32 Document& GetDocument(); | 32 Document& GetDocument(); |
| 33 WebViewImpl& WebView(); | 33 WebViewImpl& WebView(); |
| 34 WebLocalFrameImpl& MainFrame(); | 34 WebLocalFrameImpl& MainFrame(); |
| 35 const SimWebViewClient& WebViewClient() const; | 35 const SimWebViewClient& WebViewClient() const; |
| 36 SimCompositor& Compositor(); | 36 SimCompositor& Compositor(); |
| 37 | 37 |
| 38 String ExecuteJavaScript(String); | |
|
esprehn
2017/04/20 19:54:07
The spirit of sim tests is that you should avoid w
| |
| 39 | |
| 38 Vector<String>& ConsoleMessages() { return console_messages_; } | 40 Vector<String>& ConsoleMessages() { return console_messages_; } |
| 39 | 41 |
| 40 private: | 42 private: |
| 41 friend class SimWebFrameClient; | 43 friend class SimWebFrameClient; |
| 42 | 44 |
| 43 void AddConsoleMessage(const String&); | 45 void AddConsoleMessage(const String&); |
| 44 | 46 |
| 45 SimNetwork network_; | 47 SimNetwork network_; |
| 46 SimCompositor compositor_; | 48 SimCompositor compositor_; |
| 47 SimWebViewClient web_view_client_; | 49 SimWebViewClient web_view_client_; |
| 48 SimWebFrameClient web_frame_client_; | 50 SimWebFrameClient web_frame_client_; |
| 49 SimPage page_; | 51 SimPage page_; |
| 50 FrameTestHelpers::WebViewHelper web_view_helper_; | 52 FrameTestHelpers::WebViewHelper web_view_helper_; |
| 51 | 53 |
| 52 Vector<String> console_messages_; | 54 Vector<String> console_messages_; |
| 53 }; | 55 }; |
| 54 | 56 |
| 55 } // namespace blink | 57 } // namespace blink |
| 56 | 58 |
| 57 #endif | 59 #endif |
| OLD | NEW |