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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h

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 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 PaintControllerPaintTest_h 5 #ifndef PaintControllerPaintTest_h
6 #define PaintControllerPaintTest_h 6 #define PaintControllerPaintTest_h
7 7
8 #include <gtest/gtest.h> 8 #include <gtest/gtest.h>
9 #include "core/frame/LocalFrameView.h" 9 #include "core/frame/LocalFrameView.h"
10 #include "core/layout/LayoutTestHelper.h" 10 #include "core/layout/LayoutTestHelper.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 89 }
90 }; 90 };
91 91
92 class PaintControllerPaintTest : public PaintControllerPaintTestBase { 92 class PaintControllerPaintTest : public PaintControllerPaintTestBase {
93 public: 93 public:
94 PaintControllerPaintTest() : PaintControllerPaintTestBase(false) {} 94 PaintControllerPaintTest() : PaintControllerPaintTestBase(false) {}
95 }; 95 };
96 96
97 class PaintControllerPaintTestForSlimmingPaintV2 97 class PaintControllerPaintTestForSlimmingPaintV2
98 : public PaintControllerPaintTestBase, 98 : public PaintControllerPaintTestBase,
99 public testing::WithParamInterface<bool>, 99 public ::testing::WithParamInterface<bool>,
100 private ScopedRootLayerScrollingForTest { 100 private ScopedRootLayerScrollingForTest {
101 public: 101 public:
102 PaintControllerPaintTestForSlimmingPaintV2() 102 PaintControllerPaintTestForSlimmingPaintV2()
103 : PaintControllerPaintTestBase(true), 103 : PaintControllerPaintTestBase(true),
104 ScopedRootLayerScrollingForTest(GetParam()) {} 104 ScopedRootLayerScrollingForTest(GetParam()) {}
105 }; 105 };
106 106
107 class PaintControllerPaintTestForSlimmingPaintV1AndV2 107 class PaintControllerPaintTestForSlimmingPaintV1AndV2
108 : public PaintControllerPaintTestBase, 108 : public PaintControllerPaintTestBase,
109 public testing::WithParamInterface<bool> { 109 public ::testing::WithParamInterface<bool> {
110 public: 110 public:
111 PaintControllerPaintTestForSlimmingPaintV1AndV2() 111 PaintControllerPaintTestForSlimmingPaintV1AndV2()
112 : PaintControllerPaintTestBase(GetParam()) {} 112 : PaintControllerPaintTestBase(GetParam()) {}
113 }; 113 };
114 114
115 class TestDisplayItem final : public DisplayItem { 115 class TestDisplayItem final : public DisplayItem {
116 public: 116 public:
117 TestDisplayItem(const DisplayItemClient& client, Type type) 117 TestDisplayItem(const DisplayItemClient& client, Type type)
118 : DisplayItem(client, type, sizeof(*this)) {} 118 : DisplayItem(client, type, sizeof(*this)) {}
119 119
(...skipping 27 matching lines...) Expand all
147 // Shorter names for frequently used display item types in tests. 147 // Shorter names for frequently used display item types in tests.
148 const DisplayItem::Type kBackgroundType = DisplayItem::kBoxDecorationBackground; 148 const DisplayItem::Type kBackgroundType = DisplayItem::kBoxDecorationBackground;
149 const DisplayItem::Type kForegroundType = 149 const DisplayItem::Type kForegroundType =
150 DisplayItem::PaintPhaseToDrawingType(kPaintPhaseForeground); 150 DisplayItem::PaintPhaseToDrawingType(kPaintPhaseForeground);
151 const DisplayItem::Type kDocumentBackgroundType = 151 const DisplayItem::Type kDocumentBackgroundType =
152 DisplayItem::kDocumentBackground; 152 DisplayItem::kDocumentBackground;
153 153
154 } // namespace blink 154 } // namespace blink
155 155
156 #endif // PaintControllerPaintTest_h 156 #endif // PaintControllerPaintTest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698