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_REQUIRE_MODULE_TDD_TEST_H 17 #define OHOS_ACELITE_REQUIRE_MODULE_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 "module_manager.h" 26 #include "test_common.h" 27 28 namespace OHOS { 29 namespace ACELite { 30 #ifdef TDD_ASSERTIONS 31 using namespace std; 32 using namespace testing::ext; 33 class RequireModuleTddTest : public testing::Test { 34 #else 35 class RequireModuleTddTest { 36 #endif 37 public: 38 RequireModuleTddTest(); ~RequireModuleTddTest()39 ~RequireModuleTddTest(){} 40 void SetUp(); 41 void TearDown(); 42 void RequireModuleTest001(); 43 void RequireModuleTest002(); 44 void RequireModuleTest003(); 45 void RequireModuleTest004(); 46 void RequireModuleTest005(); 47 void RequireModuleTest006(); 48 void RequireModuleTest007(); 49 void RequireModuleTest008(); 50 void RunTests(); 51 52 private: 53 ModuleManager *moduleManager_; 54 }; 55 } // namespace ACELite 56 } // namespace OHOS 57 58 #endif // OHOS_ACELITE_REQUIRE_MODULE_TDD_TEST_H 59