googletest.cfg: Added ASSERT_NO_THROW and EXPECT_NO_THROW

This commit is contained in:
Daniel Marjamäki 2020-11-27 17:04:43 +01:00
parent d383913e1b
commit 01df6e23ef
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@
<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="ASSERT_THROW(code, e)" value="try{code;}catch(e){}"/>
<define name="EXPECT_THROW(code, e)" value="try{code;}catch(e){}"/> <define name="EXPECT_THROW(code, e)" value="try{code;}catch(e){}"/>
<define name="ASSERT_NO_THROW(code)" value="code"/>
<define name="EXPECT_NO_THROW(code)" value="code"/>
<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 ( )"/>