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

Unified Diff: base/time/time_win_unittest.cc

Issue 1467003002: Switch to static_assert in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed one Created 5 years, 1 month 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
Index: base/time/time_win_unittest.cc
diff --git a/base/time/time_win_unittest.cc b/base/time/time_win_unittest.cc
index 38798d5aa227c637d01fa4d50a5c2187f0bda5d0..4f490f9051cf71c401b715150422f9b1a37f6f12 100644
--- a/base/time/time_win_unittest.cc
+++ b/base/time/time_win_unittest.cc
@@ -187,8 +187,8 @@ TEST(TimeTicks, TimerPerformance) {
};
// Cheating a bit here: assumes sizeof(TimeTicks) == sizeof(Time)
// in order to create a single test case list.
- COMPILE_ASSERT(sizeof(TimeTicks) == sizeof(Time),
- test_only_works_with_same_sizes);
+ static_assert(sizeof(TimeTicks) == sizeof(Time),
+ "test_only_works_with_same_sizes");
std::vector<TestCase> cases;
cases.push_back({reinterpret_cast<TestFunc>(&Time::Now), "Time::Now"});
cases.push_back({&TimeTicks::Now, "TimeTicks::Now"});
« base/strings/safe_sprintf.cc ('K') | « base/time/time_mac.cc ('k') | base/win/i18n.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698