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

Side by Side Diff: third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp

Issue 2900593002: Move many more classes to use WebLocalFrameBase over WebLocalFrameImpl. (Closed)
Patch Set: Rebase Created 3 years, 6 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 #include <gtest/gtest.h> 5 #include <gtest/gtest.h>
6 #include <memory> 6 #include <memory>
7 #include "core/exported/WebViewBase.h" 7 #include "core/exported/WebViewBase.h"
8 #include "core/frame/LocalFrameView.h" 8 #include "core/frame/LocalFrameView.h"
9 #include "core/frame/WebLocalFrameBase.h"
9 #include "core/layout/api/LayoutViewItem.h" 10 #include "core/layout/api/LayoutViewItem.h"
10 #include "core/layout/compositing/CompositedLayerMapping.h" 11 #include "core/layout/compositing/CompositedLayerMapping.h"
11 #include "core/layout/compositing/PaintLayerCompositor.h" 12 #include "core/layout/compositing/PaintLayerCompositor.h"
12 #include "core/page/Page.h" 13 #include "core/page/Page.h"
13 #include "platform/graphics/CompositorMutableProperties.h" 14 #include "platform/graphics/CompositorMutableProperties.h"
14 #include "platform/graphics/CompositorMutation.h" 15 #include "platform/graphics/CompositorMutation.h"
15 #include "platform/graphics/GraphicsLayer.h" 16 #include "platform/graphics/GraphicsLayer.h"
16 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" 17 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h"
17 #include "platform/testing/URLTestHelpers.h" 18 #include "platform/testing/URLTestHelpers.h"
18 #include "platform/testing/UnitTestHelpers.h" 19 #include "platform/testing/UnitTestHelpers.h"
19 #include "platform/wtf/PtrUtil.h" 20 #include "platform/wtf/PtrUtil.h"
20 #include "public/platform/Platform.h" 21 #include "public/platform/Platform.h"
21 #include "public/platform/WebLayer.h" 22 #include "public/platform/WebLayer.h"
22 #include "public/platform/WebLayerTreeView.h" 23 #include "public/platform/WebLayerTreeView.h"
23 #include "public/platform/WebURLLoaderMockFactory.h" 24 #include "public/platform/WebURLLoaderMockFactory.h"
24 #include "public/web/WebSettings.h" 25 #include "public/web/WebSettings.h"
25 #include "public/web/WebViewClient.h" 26 #include "public/web/WebViewClient.h"
26 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
27 #include "web/WebLocalFrameImpl.h"
28 #include "web/tests/FrameTestHelpers.h" 28 #include "web/tests/FrameTestHelpers.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 typedef bool TestParamRootLayerScrolling; 32 typedef bool TestParamRootLayerScrolling;
33 class CompositorWorkerTest 33 class CompositorWorkerTest
34 : public ::testing::WithParamInterface<TestParamRootLayerScrolling>, 34 : public ::testing::WithParamInterface<TestParamRootLayerScrolling>,
35 private ScopedRootLayerScrollingForTest, 35 private ScopedRootLayerScrollingForTest,
36 private ScopedCompositorWorkerForTest, 36 private ScopedCompositorWorkerForTest,
37 public ::testing::Test { 37 public ::testing::Test {
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 373
374 const String& opacity_value = 374 const String& opacity_value =
375 document->domWindow() 375 document->domWindow()
376 ->getComputedStyle(proxied_element, String()) 376 ->getComputedStyle(proxied_element, String())
377 ->GetPropertyValueInternal(CSSPropertyOpacity); 377 ->GetPropertyValueInternal(CSSPropertyOpacity);
378 EXPECT_EQ("0.8", opacity_value); 378 EXPECT_EQ("0.8", opacity_value);
379 } 379 }
380 } 380 }
381 381
382 } // namespace blink 382 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698