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

Unified Diff: base/template_util_unittest.cc

Issue 2792183003: Remove base::is_trivially_destructible and use the standard library. (Closed)
Patch Set: triviallydestruct: rm-tests Created 3 years, 8 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 | « base/template_util.h ('k') | base/trace_event/heap_profiler_allocation_register.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/template_util_unittest.cc
diff --git a/base/template_util_unittest.cc b/base/template_util_unittest.cc
index 1c027428dd6d1f011d76b2f56f25634be0365b18..70d28c8e4e2806fdbcb48cc7402ac75ba2c5c117 100644
--- a/base/template_util_unittest.cc
+++ b/base/template_util_unittest.cc
@@ -69,19 +69,5 @@ static_assert(
internal::SupportsOstreamOperator<const StructWithOperator&>::value,
"struct with operator<< should be printable by const ref");
-struct TriviallyDestructible {
- int field;
-};
-
-class NonTriviallyDestructible {
- ~NonTriviallyDestructible() {}
-};
-
-static_assert(is_trivially_destructible<int>::value, "IsTriviallyDestructible");
-static_assert(is_trivially_destructible<TriviallyDestructible>::value,
- "IsTriviallyDestructible");
-static_assert(!is_trivially_destructible<NonTriviallyDestructible>::value,
- "IsTriviallyDestructible");
-
} // namespace
} // namespace base
« no previous file with comments | « base/template_util.h ('k') | base/trace_event/heap_profiler_allocation_register.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698