From fa386e0d1eb52478f11b7232d280919245c1616c Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 18 Oct 2017 13:34:32 -0700 Subject: Add POSIX swab. Surprisingly to me, there are actual uses of `swab` in the codebases I have available to search, including one with a #ifndef __ANDROID__ around it. Bug: N/A Test: ran tests Change-Id: Ic91b78ae22bb65c346cb46dd38916f48d979abe0 --- tests/linux_swab_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/linux_swab_test.cpp') diff --git a/tests/linux_swab_test.cpp b/tests/linux_swab_test.cpp index 6b964dc89..ffd407298 100644 --- a/tests/linux_swab_test.cpp +++ b/tests/linux_swab_test.cpp @@ -21,7 +21,7 @@ // This test makes sure that references to all of the kernel swab // macros/inline functions that are exported work properly. // Verifies that any kernel header updates do not break these macros. -TEST(swab, fswa) { +TEST(linux_swab, smoke) { EXPECT_EQ(0x3412U, __swab16(0x1234)); EXPECT_EQ(0x78563412U, __swab32(0x12345678U)); EXPECT_EQ(0xbaefcdab78563412ULL, __swab64(0x12345678abcdefbaULL)); -- cgit v1.2.3