| OLD | NEW |
| 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 |
| OLD | NEW |