1 #include <gtest/gtest.h> 2 #include <string.h> 3 #include <wchar.h> 4 5 using namespace testing::ext; 6 7 class StringStrdupTest : public testing::Test { SetUp()8 void SetUp() override {} TearDown()9 void TearDown() override {} 10 }; 11 12 /** 13 * @tc.name: strdup_001 14 * @tc.desc: Verify its functionality is normal 15 * @tc.type: FUNC 16 * */ 17 HWTEST_F(StringStrdupTest, strdup_001, TestSize.Level1) 18 { 19 EXPECT_STREQ("strduptest", strdup("strduptest")); 20 }