aboutsummaryrefslogtreecommitdiff
path: root/files/unit_test/basictypes_test.cc
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-05-03 23:40:04 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-05-03 23:40:04 +0000
commitc1068d3eb9464eb1e6028869524930c57feb716b (patch)
tree7aa355fd0b89ec0b2611e17ee84a14c6fa449e22 /files/unit_test/basictypes_test.cc
parentad14b7e1bb4ad1db3cc083b70c9179f86b2e2052 (diff)
parenta270e88f71c875f86ebc612ff3232b204bbc75c9 (diff)
downloadlibyuv-androidx-glance-release.tar.gz
Merge "Snap for 11801295 from 488a2af021e3e7473f083a9435b1472c0d411f3d to androidx-glance-release" into androidx-glance-releaseandroidx-glance-release
Diffstat (limited to 'files/unit_test/basictypes_test.cc')
-rw-r--r--files/unit_test/basictypes_test.cc43
1 files changed, 0 insertions, 43 deletions
diff --git a/files/unit_test/basictypes_test.cc b/files/unit_test/basictypes_test.cc
deleted file mode 100644
index 9aaa2dcd..00000000
--- a/files/unit_test/basictypes_test.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2012 The LibYuv Project Authors. All rights reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#include "../unit_test/unit_test.h"
-#include "libyuv/basic_types.h"
-
-namespace libyuv {
-
-TEST_F(LibYUVBaseTest, SizeOfTypes) {
- 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));
- EXPECT_EQ(2u, sizeof(u16));
- EXPECT_EQ(4u, sizeof(i32));
- EXPECT_EQ(4u, sizeof(u32));
- EXPECT_EQ(8u, sizeof(i64));
- EXPECT_EQ(8u, sizeof(u64));
- EXPECT_GT(0, i8);
- EXPECT_LT(0u, u8);
- EXPECT_GT(0, i16);
- EXPECT_LT(0u, u16);
- EXPECT_GT(0, i32);
- EXPECT_LT(0u, u32);
- EXPECT_GT(0, i64);
- EXPECT_LT(0u, u64);
-}
-
-} // namespace libyuv