1 /* 2 * Copyright (c) 2021 Huawei Device 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 #ifndef OHOS_ACELITE_JS_ASYNC_WORK_TDD_TEST_H 17 #define OHOS_ACELITE_JS_ASYNC_WORK_TDD_TEST_H 18 19 #ifdef TDD_ASSERTIONS 20 #include <climits> 21 #include <gtest/gtest.h> 22 #endif 23 24 #include "acelite_config.h" 25 #include "test_common.h" 26 27 namespace OHOS { 28 namespace ACELite { 29 #ifdef TDD_ASSERTIONS 30 using namespace std; 31 using namespace testing::ext; 32 class JsAsyncWorkTddTest : public testing::Test { 33 #else 34 class JsAsyncWorkTddTest { 35 #endif 36 public: JsAsyncWorkTddTest()37 JsAsyncWorkTddTest() {} ~JsAsyncWorkTddTest()38 ~JsAsyncWorkTddTest() {} 39 void SetUp(); TearDown()40 void TearDown() {} 41 void JsAsyncWorkTest001(); 42 void JsAsyncWorkTest002(); 43 void JsAsyncWorkTest003(); 44 void JsAsyncWorkTest004(); 45 void JsAsyncWorkTest005(); 46 void RunTests(); 47 }; 48 } // namespace ACELite 49 } // namespace OHOS 50 51 #endif // OHOS_ACELITE_JS_ASYNC_WORK_TDD_TEST_H 52