diff options
author | Elliott Hughes <enh@google.com> | 2017-10-18 13:34:32 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2017-10-18 13:34:32 -0700 |
commit | fa386e0d1eb52478f11b7232d280919245c1616c (patch) | |
tree | fcfb7d65c39ec91e1b1ec5bedeefe806861d21c4 /tests/linux_swab_test.cpp | |
parent | ab9dc08bdd60d3709e1bce555625d923b32812be (diff) |
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
Diffstat (limited to 'tests/linux_swab_test.cpp')
-rw-r--r-- | tests/linux_swab_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |