From 81a69f1bc503e77d32577820393b9feb45fb2fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E6=A3=AE=E6=B5=A9?= Date: Wed, 20 Jul 2022 15:40:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 董森浩 --- .../accesstokenid/accesstokenid_test.cpp | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/test/unittest/accesstokenid/accesstokenid_test.cpp b/test/unittest/accesstokenid/accesstokenid_test.cpp index abdfd47..9251ce8 100644 --- a/test/unittest/accesstokenid/accesstokenid_test.cpp +++ b/test/unittest/accesstokenid/accesstokenid_test.cpp @@ -68,6 +68,17 @@ struct tokeninfo { unsigned long long ftokenid; }; +using namespace testing::ext; +using namespace std; + +void AccesstokenidTest::SetUp() {} + +void AccesstokenidTest::TearDown() {} + +void AccesstokenidTest::SetUpTestCase() {} + +void AccesstokenidTest::TearDownTestCase() {} + namespace { static unsigned long long GenRand64(void) { @@ -210,18 +221,6 @@ static void *CheckChildThreadSetIndepent(void *args) pthread_exit(nullptr); return nullptr; } -} - -using namespace testing::ext; -using namespace std; - -void AccesstokenidTest::SetUp() {} - -void AccesstokenidTest::TearDown() {} - -void AccesstokenidTest::SetUpTestCase() {} - -void AccesstokenidTest::TearDownTestCase() {} /** * @tc.name: CheckInitToken @@ -640,4 +639,4 @@ HWTEST_F(AccesstokenidTest, WithGrpGetfTokenid, Function | MediumTest | Level1) ASSERT_EQ(0, ret); } - +} -- Gitee