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

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

Issue 1397713004: Don't bother layout until first navigation is done. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another attempt to fix tests Created 4 years, 10 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 #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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/Source/web/tests/sim/SimWebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698