#include #include "../src/types.hh" TEST( PepIdentity, Simple ) { pEp::Identity id{"test1@pEpdatatypes.lol", "FF00112233445566778899AABBCCDDEEFF001122", "Test User ID", "Test User Name"}; } TEST( IdentityList, Simple ) { pEp::IdentityList il; EXPECT_TRUE(il.empty()); EXPECT_EQ(il.size(), 0); } TEST( IdentityList, InitList ) { pEp::IdentityList il( { pEp::Identity{"test-init1@pEpdatatypes.lol", "0100112233445566778899AABBCCDDEEFF001122", "Test User ID1", "Test User 1 Name"}, pEp::Identity{"test-init2@pEpdatatypes.lol", "0200112233445566778899AABBCCDDEEFF001122", "Test User ID2", "Test User 2 Name"} } ); EXPECT_EQ( il.size(), 2); il.clear(); EXPECT_EQ(il.size(), 0); EXPECT_TRUE( il.empty() ); } /* TEST( IdentityList, Dynamic ) { static const unsigned NumberOfElements = 17; pEp::IdentityList il; EXPECT_EQ(il.size(), 0); EXPECT_TRUE( il.empty() ); char buffer[16]; for(unsigned u=0; u