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 #ifndef DISTRIBUTED_NB_CURSOR_TESTCASE_H 16 #define DISTRIBUTED_NB_CURSOR_TESTCASE_H 17 18 #include <vector> 19 #include "kv_store_delegate.h" 20 #include "kv_store_delegate_manager.h" 21 #include "kv_store_result_set.h" 22 class DistributeddbNbCursorTestcase final { 23 public: DistributeddbNbCursorTestcase()24 DistributeddbNbCursorTestcase() {}; ~DistributeddbNbCursorTestcase()25 ~DistributeddbNbCursorTestcase() {} 26 static void ResultSetDb001(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 27 static void ResultSetDb002(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 28 static void ResultSetDb003(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 29 static void ResultSetDb004(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 30 static void ResultSetDb005(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 31 static void ResultSetDb006(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 32 static void ResultSetDb007(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 33 static void ResultSetDb008(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 34 static void ResultSetDb009(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 35 static void ResultSetDb010(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 36 static void ResultSetDb011(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 37 static void ResultSetDb012(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 38 static void ResultSetDb013(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 39 static void ResultSetDb014(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 40 static void ResultSetDb015(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 41 static void ResultSetDb016(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 42 static void ResultSetDb017(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 43 static void ResultSetDb018(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 44 static void ResultSetDb019(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 45 static void ResultSetDb020(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 46 static void ResultSetDb021(DistributedDB::KvStoreNbDelegate *delegate, 47 DistributedDB::KvStoreDelegateManager *manager, bool isRowIdMode); 48 static void ResultSetDb022(bool isRowIdMode); 49 static void ResultSetDb023(bool isRowIdMode); 50 static void ResultSetDb024(bool isRowIdMode); 51 static void ResultSetDb025(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 52 static void ResultSetDb026(DistributedDB::KvStoreNbDelegate *delegate, bool isRowIdMode); 53 static void ResultSetDb027(bool isRowIdMode); 54 }; 55 #endif // DISTRIBUTED_NB_CURSOR_TESTCASE_H