googletest: ASSERT_THROW / EXPECT_THROW

This commit is contained in:
Daniel Marjamäki 2019-11-02 20:17:04 +01:00
parent 791242ea78
commit 9917ff1ce1
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@
<define name="EXPECT_STRCASEEQ(str1,str2)" value="(void)(*(str1)==*(str2))"/> <define name="EXPECT_STRCASEEQ(str1,str2)" value="(void)(*(str1)==*(str2))"/>
<define name="ASSERT_STRCASENE(str1,str2)" value="(void)(*(str1)!=*(str2))"/> <define name="ASSERT_STRCASENE(str1,str2)" value="(void)(*(str1)!=*(str2))"/>
<define name="EXPECT_STRCASENE(str1,str2)" value="(void)(*(str1)!=*(str2))"/> <define name="EXPECT_STRCASENE(str1,str2)" value="(void)(*(str1)!=*(str2))"/>
<define name="ASSERT_THROW(code, e)" value="try{code}catch(e){}"/>
<define name="EXPECT_THROW(code, e)" value="try{code}catch(e){}"/>
<define name="TEST(A,B)" value="void __ ## A ## _ ## B ( )"/> <define name="TEST(A,B)" value="void __ ## A ## _ ## B ( )"/>
<define name="TEST_F(A,B)" value="void __ ## A ## _ ## B ( )"/> <define name="TEST_F(A,B)" value="void __ ## A ## _ ## B ( )"/>
<define name="TEST_P(A,B)" value="void __ ## A ## _ ## B ( )"/> <define name="TEST_P(A,B)" value="void __ ## A ## _ ## B ( )"/>