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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItemTest.cpp

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 #include "platform/graphics/paint/DisplayItem.h" 5 #include "platform/graphics/paint/DisplayItem.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace blink { 9 namespace blink {
10 namespace { 10 namespace {
11 11
12 #ifndef NDEBUG 12 #ifndef NDEBUG
13 TEST(DisplayItemTest, DebugStringsExist) 13 TEST(DisplayItemTest, DebugStringsExist)
14 { 14 {
15 for (int type = 0; type <= DisplayItem::TypeLast; type++) { 15 for (int type = 0; type <= DisplayItem::kTypeLast; type++) {
16 String debugString = DisplayItem::typeAsDebugString(static_cast<DisplayI tem::Type>(type)); 16 String debugString = DisplayItem::typeAsDebugString(static_cast<DisplayI tem::Type>(type));
17 EXPECT_FALSE(debugString.isEmpty()); 17 EXPECT_FALSE(debugString.isEmpty());
18 EXPECT_NE("Unknown", debugString); 18 EXPECT_NE("Unknown", debugString);
19 } 19 }
20 } 20 }
21 #endif // NDEBUG 21 #endif // NDEBUG
22 22
23 } // namespace 23 } // namespace
24 } // namespace blink 24 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698