diff options
author | Chong Zhang <chz@google.com> | 2019-06-27 14:28:37 -0700 |
---|---|---|
committer | Chong Zhang <chz@google.com> | 2019-06-27 16:38:44 -0700 |
commit | ab123ac62c872f89e20f10c96e651ead21414ffc (patch) | |
tree | 61f45a95ef42e952ec121583ed73b8649e058bc1 /files/unit_test/basictypes_test.cc | |
parent | ad97fd58c110036d9dfcdce8bf98282e92707a89 (diff) | |
download | libyuv-ab123ac62c872f89e20f10c96e651ead21414ffc.tar.gz |
libyuv roll to r1722 to pick up a few methods
that we've been manually cherry-picking.
bug: 132357297
test: MediaMetadataRetriever test; manual testing
thumbnails in Photos.
Exempt-From-Owner-Approval:
files/infra/config/OWNERS owner names are not in android
gerrit, CL fail to push with these. Delete of file need
to bypass owner.
Change-Id: Ic22346e45671452429716be8b0a1999eeaea0d7b
Diffstat (limited to 'files/unit_test/basictypes_test.cc')
-rw-r--r-- | files/unit_test/basictypes_test.cc | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/files/unit_test/basictypes_test.cc b/files/unit_test/basictypes_test.cc index 89f7644d..9aaa2dcd 100644 --- a/files/unit_test/basictypes_test.cc +++ b/files/unit_test/basictypes_test.cc @@ -13,25 +13,15 @@ namespace libyuv { -TEST_F(LibYUVBaseTest, Endian) { - uint16 v16 = 0x1234u; - uint8 first_byte = *reinterpret_cast<uint8*>(&v16); -#if defined(LIBYUV_LITTLE_ENDIAN) - EXPECT_EQ(0x34u, first_byte); -#else - EXPECT_EQ(0x12u, first_byte); -#endif -} - TEST_F(LibYUVBaseTest, SizeOfTypes) { - int8 i8 = -1; - uint8 u8 = 1u; - int16 i16 = -1; - uint16 u16 = 1u; - int32 i32 = -1; - uint32 u32 = 1u; - int64 i64 = -1; - uint64 u64 = 1u; + int8_t i8 = -1; + uint8_t u8 = 1u; + int16_t i16 = -1; + uint16_t u16 = 1u; + int32_t i32 = -1; + uint32_t u32 = 1u; + int64_t i64 = -1; + uint64_t u64 = 1u; EXPECT_EQ(1u, sizeof(i8)); EXPECT_EQ(1u, sizeof(u8)); EXPECT_EQ(2u, sizeof(i16)); @@ -50,11 +40,4 @@ TEST_F(LibYUVBaseTest, SizeOfTypes) { EXPECT_LT(0u, u64); } -TEST_F(LibYUVBaseTest, SizeOfConstants) { - EXPECT_EQ(8u, sizeof(INT64_C(0))); - EXPECT_EQ(8u, sizeof(UINT64_C(0))); - EXPECT_EQ(8u, sizeof(INT64_C(0x1234567887654321))); - EXPECT_EQ(8u, sizeof(UINT64_C(0x8765432112345678))); -} - } // namespace libyuv |