19 #include "gtest/gtest.h" 24 TEST(ConfigTest, Endianness) {
27 uint8_t
data[
sizeof(uint32_t)];
29 number.data[0] = 0x00;
30 number.data[1] = 0x01;
31 number.data[2] = 0x02;
32 number.data[3] = 0x03;
33 #if defined(ABSL_IS_LITTLE_ENDIAN) && defined(ABSL_IS_BIG_ENDIAN) 34 #error Both ABSL_IS_LITTLE_ENDIAN and ABSL_IS_BIG_ENDIAN are defined 35 #elif defined(ABSL_IS_LITTLE_ENDIAN) 36 EXPECT_EQ(UINT32_C(0x03020100), number.value);
37 #elif defined(ABSL_IS_BIG_ENDIAN) 38 EXPECT_EQ(UINT32_C(0x00010203), number.value);
40 #error Unknown endianness 44 #if defined(ABSL_HAVE_THREAD_LOCAL) 45 TEST(ConfigTest, ThreadLocal) {
46 static thread_local
int mine_mine_mine = 16;
47 EXPECT_EQ(16, mine_mine_mine);
51 EXPECT_EQ(16, mine_mine_mine);
53 EXPECT_EQ(32, mine_mine_mine);
56 EXPECT_EQ(16, mine_mine_mine);
static char data[kDataSize]
TEST(Symbolize, Unimplemented)