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

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

Issue 2286843002: Rename DisplayItem::Type enum constants to Chromium style. (Closed)
Patch Set: Rebasing... Created 4 years, 3 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 "core/frame/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/layout/LayoutTestHelper.h" 9 #include "core/layout/LayoutTestHelper.h"
10 #include "core/layout/LayoutView.h" 10 #include "core/layout/LayoutView.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 break; \ 109 break; \
110 const TestDisplayItem expected[] = { __VA_ARGS__ }; \ 110 const TestDisplayItem expected[] = { __VA_ARGS__ }; \
111 for (size_t index = 0; index < std::min<size_t>(actual.size(), expectedS ize); index++) { \ 111 for (size_t index = 0; index < std::min<size_t>(actual.size(), expectedS ize); index++) { \
112 TRACE_DISPLAY_ITEMS(index, expected[index], actual[index]); \ 112 TRACE_DISPLAY_ITEMS(index, expected[index], actual[index]); \
113 EXPECT_EQ(expected[index].client(), actual[index].client()); \ 113 EXPECT_EQ(expected[index].client(), actual[index].client()); \
114 EXPECT_EQ(expected[index].getType(), actual[index].getType()); \ 114 EXPECT_EQ(expected[index].getType(), actual[index].getType()); \
115 } \ 115 } \
116 } while (false); 116 } while (false);
117 117
118 // Shorter names for frequently used display item types in tests. 118 // Shorter names for frequently used display item types in tests.
119 const DisplayItem::Type backgroundType = DisplayItem::BoxDecorationBackground; 119 const DisplayItem::Type backgroundType = DisplayItem::kBoxDecorationBackground;
120 const DisplayItem::Type foregroundType = DisplayItem::paintPhaseToDrawingType(Pa intPhaseForeground); 120 const DisplayItem::Type foregroundType = DisplayItem::paintPhaseToDrawingType(Pa intPhaseForeground);
121 const DisplayItem::Type documentBackgroundType = DisplayItem::DocumentBackground ; 121 const DisplayItem::Type documentBackgroundType = DisplayItem::kDocumentBackgroun d;
122 122
123 } // namespace blink 123 } // namespace blink
124 124
125 #endif // PaintControllerPaintTest_h 125 #endif // PaintControllerPaintTest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698