Skip to content

Commit

Permalink
Move arpa_inet test under posix_compliance
Browse files Browse the repository at this point in the history
b/317437129
  • Loading branch information
gbournou committed Jan 17, 2024
1 parent 4b5caaf commit e742746
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion starboard/nplb/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ target(gtest_target_type, "nplb") {
"//starboard/testing/fake_graphics_context_provider.h",
"accessibility_test.cc",
"align_test.cc",
"arpa_inet_test.cc",
"atomic_base_test.cc",
"atomic_test.cc",
"audio_sink_create_test.cc",
Expand Down Expand Up @@ -135,6 +134,7 @@ target(gtest_target_type, "nplb") {
"player_test_util.cc",
"player_test_util.h",
"player_write_sample_test.cc",
"posix_compliance/posix_arpa_inet_test.cc",
"posix_compliance/posix_memory_map_test.cc",
"posix_compliance/posix_string_compare_no_case_n_test.cc",
"posix_compliance/posix_string_compare_no_case_test.cc",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ const uint32_t kTestU32 = 0xFEDCBA98;
const uint32_t kExpectedU32 = 0x98BADCFE;

#if SB_IS(BIG_ENDIAN)
TEST(ArpaInet, BigEndian) {
TEST(PosixArpaInetTest, BigEndian) {
EXPECT_EQ(kTestU16, htons(kTestU16));
EXPECT_EQ(kTestU16, ntohs(kTestU16));

EXPECT_EQ(kTestU32, htonl(kTestU32));
EXPECT_EQ(kTestU32, ntohl(kTestU32));
}
#else
TEST(ArpaInet, LittleEndian) {
TEST(PosixArpaInetTest, LittleEndian) {
EXPECT_EQ(kExpectedU16, htons(kTestU16));
EXPECT_EQ(kExpectedU16, ntohs(kTestU16));

Expand Down

0 comments on commit e742746

Please sign in to comment.