src/base/stats/info.test.cc
/** Test that a name cannot be duplicated under the old style. */
Test that a name cannot be duplicated under the old style.
Test that a name cannot be duplicated under the old style .
TEST(StatsInfoDeathTest, NameOldStyleDuplicate)
{
    TestInfo info;
    std::string name = "InfoNameOldStyleDuplicate";
    info.setName(name, true);
    EXPECT_EQ(info.name, name);
    TestInfo info2;
    ASSERT_ANY_THROW(info2.setName(name, true));
}
TEST ( StatsInfoDeathTest , NameOldStyleDuplicate ) { TestInfo info ; std :: string name = " " ; info . setName ( name , true ) ; EXPECT_EQ ( info . name , name ) ; TestInfo info2 ; ASSERT_ANY_THROW ( info2 . setName ( name , true ) ) ; }
Test that a name cannot be duplicated under the old style.
Test that a name cannot be duplicated under the old style .