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

Unified Diff: third_party/WebKit/Source/wtf/TypeTraitsTest.cpp

Issue 1772163003: WTF: Move TypeTraits.cpp to test-only target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/TypeTraits.cpp ('k') | third_party/WebKit/Source/wtf/wtf.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/TypeTraitsTest.cpp
diff --git a/third_party/WebKit/Source/wtf/TypeTraits.cpp b/third_party/WebKit/Source/wtf/TypeTraitsTest.cpp
similarity index 98%
rename from third_party/WebKit/Source/wtf/TypeTraits.cpp
rename to third_party/WebKit/Source/wtf/TypeTraitsTest.cpp
index 9b8c10352f5621e19698769b6940772598cf8b8a..12fec336318e09017a29f60baf81d8ae0be5e4ea 100644
--- a/third_party/WebKit/Source/wtf/TypeTraits.cpp
+++ b/third_party/WebKit/Source/wtf/TypeTraitsTest.cpp
@@ -23,8 +23,12 @@
#include "wtf/Noncopyable.h"
+// No gtest tests; only static_assert checks.
+
namespace WTF {
+namespace {
+
struct VirtualClass {
virtual void A() { }
};
@@ -99,4 +103,6 @@ static_assert((IsSubclassOfTemplate<TestDerivedClass, TestBaseClass>::value), "D
typedef int IntArray[];
typedef int IntArraySized[4];
+} // anonymous namespace
+
} // namespace WTF
« no previous file with comments | « third_party/WebKit/Source/wtf/TypeTraits.cpp ('k') | third_party/WebKit/Source/wtf/wtf.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698