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

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

Issue 2713773003: Add test for paint underinvalidation fix with animated transform overflow. (Closed)
Patch Set: Created 3 years, 9 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"
11 #include "web/tests/sim/SimPage.h" 11 #include "web/tests/sim/SimPage.h"
12 #include "web/tests/sim/SimWebViewClient.h" 12 #include "web/tests/sim/SimWebViewClient.h"
13 #include <gtest/gtest.h> 13 #include <gtest/gtest.h>
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class WebViewImpl;
18 class WebLocalFrameImpl;
19 class Document; 17 class Document;
20 class LocalDOMWindow; 18 class LocalDOMWindow;
19 class WebLocalFrameImpl;
20 class WebSettings;
21 class WebViewImpl;
21 22
22 class SimTest : public ::testing::Test { 23 class SimTest : public ::testing::Test {
23 protected: 24 protected:
24 SimTest(); 25 SimTest();
26 SimTest(void (*updateSettingsFunc)(WebSettings*));
25 ~SimTest() override; 27 ~SimTest() override;
26 28
27 void loadURL(const String& url); 29 void loadURL(const String& url);
28 30
29 LocalDOMWindow& window(); 31 LocalDOMWindow& window();
30 SimPage& page(); 32 SimPage& page();
31 Document& document(); 33 Document& document();
32 WebViewImpl& webView(); 34 WebViewImpl& webView();
33 WebLocalFrameImpl& mainFrame(); 35 WebLocalFrameImpl& mainFrame();
34 const SimWebViewClient& webViewClient() const; 36 const SimWebViewClient& webViewClient() const;
35 SimCompositor& compositor(); 37 SimCompositor& compositor();
36 38
37 private: 39 private:
38 SimNetwork m_network; 40 SimNetwork m_network;
39 SimCompositor m_compositor; 41 SimCompositor m_compositor;
40 SimWebViewClient m_webViewClient; 42 SimWebViewClient m_webViewClient;
41 SimPage m_page; 43 SimPage m_page;
42 FrameTestHelpers::WebViewHelper m_webViewHelper; 44 FrameTestHelpers::WebViewHelper m_webViewHelper;
43 }; 45 };
44 46
45 } // namespace blink 47 } // namespace blink
46 48
47 #endif 49 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698