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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSValueTestHelper.h

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 namespace testing { 44 namespace testing {
45 namespace internal { 45 namespace internal {
46 46
47 // gtest tests won't compile with clang when trying to EXPECT_EQ a class that 47 // gtest tests won't compile with clang when trying to EXPECT_EQ a class that
48 // has the "template<typename T> operator T*()" private. 48 // has the "template<typename T> operator T*()" private.
49 // (See https://code.google.com/p/googletest/issues/detail?id=442) 49 // (See https://code.google.com/p/googletest/issues/detail?id=442)
50 // 50 //
51 // Work around is to define this custom IsNullLiteralHelper. 51 // Work around is to define this custom IsNullLiteralHelper.
52 char (&IsNullLiteralHelper(const blink::CSSValue&))[2]; 52 char (&IsNullLiteralHelper(const blink::CSSValue&))[2];
53 } 53 } // namespace internal
54 } // namespace testing 54 } // namespace testing
55 55
56 namespace blink { 56 namespace blink {
57 57
58 inline void PrintTo(const CSSValue& cssValue, 58 inline void PrintTo(const CSSValue& cssValue,
59 ::std::ostream* os, 59 ::std::ostream* os,
60 const char* typeName = "CSSValue") { 60 const char* typeName = "CSSValue") {
61 *os << typeName << "(" << cssValue.cssText().utf8().data() << ")"; 61 *os << typeName << "(" << cssValue.cssText().utf8().data() << ")";
62 } 62 }
63 63
64 inline void PrintTo(const CSSPrimitiveValue& cssValue, 64 inline void PrintTo(const CSSPrimitiveValue& cssValue,
65 ::std::ostream* os, 65 ::std::ostream* os,
66 const char* typeName = "CSSPrimitiveValue") { 66 const char* typeName = "CSSPrimitiveValue") {
67 PrintTo(static_cast<const CSSValue&>(cssValue), os, typeName); 67 PrintTo(static_cast<const CSSValue&>(cssValue), os, typeName);
68 } 68 }
69 69
70 } // namespace blink 70 } // namespace blink
71 71
72 #endif 72 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698