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_CACHE_MANAGER_TDD_TEST_H 17 #define OHOS_ACELITE_CACHE_MANAGER_TDD_TEST_H 18 19 #include "acelite_config.h" 20 #include "cache_config.h" 21 #include "cache_manager.h" 22 #ifdef TDD_ASSERTIONS 23 #include <climits> 24 #include <gtest/gtest.h> 25 #endif 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 CacheManagerTddTest : public testing::Test { 34 #else 35 class CacheManagerTddTest { 36 #endif 37 public: 38 CacheManagerTddTest() = default; 39 ~CacheManagerTddTest() = default; 40 void SetUp(); 41 void CacheDistribute001(); 42 void CacheDistribute002(); 43 void CacheDistribute003(); 44 void CacheDistribute004(); 45 void CacheDistribute005(); 46 void CacheDistribute006(); 47 void RunTests(); 48 49 private: 50 static const CacheUnit TEST_CONFIG_TABLE[]; 51 }; 52 } // namespace ACELite 53 } // namespace OHOS 54 #endif // OHOS_ACELITE_CACHE_MANAGER_TDD_TEST_H 55