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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp

Issue 2970833002: Be explicit about namespace testing to not mix it with blink::testing (Closed)
Patch Set: Created 3 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "core/layout/compositing/CompositedLayerMapping.h" 5 #include "core/layout/compositing/CompositedLayerMapping.h"
6 6
7 #include "core/frame/LocalFrameView.h" 7 #include "core/frame/LocalFrameView.h"
8 #include "core/layout/LayoutBoxModelObject.h" 8 #include "core/layout/LayoutBoxModelObject.h"
9 #include "core/layout/LayoutTestHelper.h" 9 #include "core/layout/LayoutTestHelper.h"
10 #include "core/layout/api/LayoutViewItem.h" 10 #include "core/layout/api/LayoutViewItem.h"
11 #include "core/paint/PaintLayer.h" 11 #include "core/paint/PaintLayer.h"
12 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" 12 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h"
13 #include "public/platform/WebContentLayer.h" 13 #include "public/platform/WebContentLayer.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 typedef bool TestParamRootLayerScrolling; 18 typedef bool TestParamRootLayerScrolling;
19 class CompositedLayerMappingTest 19 class CompositedLayerMappingTest
20 : public testing::WithParamInterface<TestParamRootLayerScrolling>, 20 : public ::testing::WithParamInterface<TestParamRootLayerScrolling>,
21 private ScopedRootLayerScrollingForTest, 21 private ScopedRootLayerScrollingForTest,
22 public RenderingTest { 22 public RenderingTest {
23 public: 23 public:
24 CompositedLayerMappingTest() 24 CompositedLayerMappingTest()
25 : ScopedRootLayerScrollingForTest(GetParam()), 25 : ScopedRootLayerScrollingForTest(GetParam()),
26 RenderingTest(SingleChildLocalFrameClient::Create()) {} 26 RenderingTest(SingleChildLocalFrameClient::Create()) {}
27 27
28 protected: 28 protected:
29 IntRect RecomputeInterestRect(const GraphicsLayer* graphics_layer) { 29 IntRect RecomputeInterestRect(const GraphicsLayer* graphics_layer) {
30 return static_cast<CompositedLayerMapping*>(graphics_layer->Client()) 30 return static_cast<CompositedLayerMapping*>(graphics_layer->Client())
(...skipping 1880 matching lines...) Expand 10 before | Expand all | Expand 10 after
1911 ASSERT_TRUE(target && target->IsBox()); 1911 ASSERT_TRUE(target && target->IsBox());
1912 PaintLayer* target_layer = ToLayoutBox(target)->Layer(); 1912 PaintLayer* target_layer = ToLayoutBox(target)->Layer();
1913 GraphicsLayer* target_graphics_layer = 1913 GraphicsLayer* target_graphics_layer =
1914 target_layer ? target_layer->GraphicsLayerBacking() : nullptr; 1914 target_layer ? target_layer->GraphicsLayerBacking() : nullptr;
1915 ASSERT_TRUE(target_graphics_layer); 1915 ASSERT_TRUE(target_graphics_layer);
1916 EXPECT_TRUE( 1916 EXPECT_TRUE(
1917 target_graphics_layer->ContentLayer()->TransformedRasterizationAllowed()); 1917 target_graphics_layer->ContentLayer()->TransformedRasterizationAllowed());
1918 } 1918 }
1919 1919
1920 } // namespace blink 1920 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698