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

Unified Diff: google_apis/gcm/base/mcs_util_unittest.cc

Issue 860983003: Adding "static_assert" in lieu of "COMPILE_ASSERT" in google_apis module (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « google_apis/gcm/base/mcs_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/base/mcs_util_unittest.cc
diff --git a/google_apis/gcm/base/mcs_util_unittest.cc b/google_apis/gcm/base/mcs_util_unittest.cc
index 00bac1175f9a560f7fa0f88d2273d91a75b93d59..d51f5a07f7851ef56182b31ccbe80fee69507834 100644
--- a/google_apis/gcm/base/mcs_util_unittest.cc
+++ b/google_apis/gcm/base/mcs_util_unittest.cc
@@ -42,7 +42,7 @@ TEST(MCSUtilTest, ProtobufToTag) {
// Test getting and setting persistent ids.
TEST(MCSUtilTest, PersistentIds) {
- COMPILE_ASSERT(kNumProtoTypes == 16U, UpdatePersistentIds);
+ static_assert(kNumProtoTypes == 16U, "Update Persistent Ids");
const int kTagsWithPersistentIds[] = {
kIqStanzaTag,
kDataMessageStanzaTag
@@ -61,7 +61,7 @@ TEST(MCSUtilTest, PersistentIds) {
// Test getting and setting stream ids.
TEST(MCSUtilTest, StreamIds) {
- COMPILE_ASSERT(kNumProtoTypes == 16U, UpdateStreamIds);
+ static_assert(kNumProtoTypes == 16U, "Update Stream Ids");
const int kTagsWithStreamIds[] = {
kIqStanzaTag,
kDataMessageStanzaTag,
« no previous file with comments | « google_apis/gcm/base/mcs_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698