• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include <gtest/gtest.h>
17 #include <stdlib.h>
18 #include "ActsLibuvTest.h"
19 extern "C"{
20 #include "runner.h"
21 }
22 
23 namespace OHOS {
24     using namespace std;
25     using namespace testing::ext;
26 
27     // Preset action of the test suite, which is executed before the first test case
SetUpTestCase(void)28     void ActsLibuvTest::SetUpTestCase(void)
29     {
30     }
31     // Test suite cleanup action, which is executed after the last test case
TearDownTestCase(void)32     void ActsLibuvTest::TearDownTestCase(void)
33     {
34     }
35     // Preset action of the test case
SetUp()36     void ActsLibuvTest::SetUp()
37     {
38     }
39     // Cleanup action of the test case
TearDown()40     void ActsLibuvTest::TearDown()
41     {
42     }
43 
44     HWTEST_F(ActsLibuvTest, TestLibuvTestCase001, Function | MediumTest | Level2)
45     {
46         printf("------start ActsLibuvTest------\n");
47         system("/data/local/tmp/libuvruntest");
48         EXPECT_TRUE(true);
49         printf("------end ActsLibuvTest------\n");
50     }
51 }
52