Index: webrtc/base/basictypes_unittest.cc |
diff --git a/webrtc/base/basictypes_unittest.cc b/webrtc/base/basictypes_unittest.cc |
index 20515ecf969c6d854d224b8769980ce0aebc5e9b..3ac4337bc2e9fe340fa79daf16dab41294ac9c83 100644 |
--- a/webrtc/base/basictypes_unittest.cc |
+++ b/webrtc/base/basictypes_unittest.cc |
@@ -14,6 +14,15 @@ |
namespace rtc { |
+static_assert(sizeof(int8) == 1, "Unexpected size"); |
+static_assert(sizeof(uint8) == 1, "Unexpected size"); |
+static_assert(sizeof(int16) == 2, "Unexpected size"); |
+static_assert(sizeof(uint16) == 2, "Unexpected size"); |
+static_assert(sizeof(int32) == 4, "Unexpected size"); |
+static_assert(sizeof(uint32) == 4, "Unexpected size"); |
+static_assert(sizeof(int64) == 8, "Unexpected size"); |
+static_assert(sizeof(uint64) == 8, "Unexpected size"); |
+ |
TEST(BasicTypesTest, Endian) { |
uint16 v16 = 0x1234u; |
uint8 first_byte = *reinterpret_cast<uint8*>(&v16); |