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 #include "distributeddb_constant.h" 16 #include "distributeddb_nb_test_tools.h" 17 18 namespace DistributedDBDataGenerator { 19 #ifndef HW_USING_LABEL_FUNC_IN_RELEASE_VERSION 20 const std::string DistributedDBConstant::NB_DIRECTOR = "/data/test/nbstub/"; // default work dir. 21 #else 22 // default work dir by label in phone requested by fbe. 23 const std::string DistributedDBConstant::NB_DIRECTOR = "/data/misc_ce/0/test/"; 24 #endif 25 const std::string DistributedDBConstant::NB_DATABASE_NAME = "single_ver/main/gen_natural_store.db"; 26 const std::string DistributedDBConstant::NORMAL_COMMON_SCHEMA = "normal_common_schema.bfbs"; 27 const std::string DistributedDBConstant::COMPATIBLE_FOR_NORMAL_COMMON_SCHEMA = 28 "compatible_for_normal_common_schema.bfbs"; 29 const std::string DistributedDBConstant::UNCOMPATIBLE_FOR_NORMAL_COMMON_SCHEMA = 30 "uncompatible_for_normal_common_schema.bfbs"; 31 const DistributedDB::KvStoreConfig DistributedDBConstant::CONFIG = { 32 .dataDir = NB_DIRECTOR 33 }; 34 const std::string DistributedDBConstant::DB_FILE_DOCUMENT = "single_ver/"; 35 } // namespace DistributedDBDataGenerator 36