/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PubL v2 for more details. */ #define private public #include "storage/tx/ob_id_service.h" #undef private #include #include "share/ob_errno.h" #include "lib/oblog/ob_log.h" namespace oceanbase { using namespace common; using namespace transaction; namespace unittest { class TestObAllIDMeta : public ::testing::Test { public : virtual void SetUp() {} virtual void TearDown() {} static const int64_t type_count = ObIDService::MAX_SERVICE_TYPE + 2; }; class MockObAllIDMetaUpper { public: MockObAllIDMetaUpper() : count_(TestObAllIDMeta::type_count) {} ~MockObAllIDMetaUpper() {} void init() { for (int i=0; iname()); MockObAllIDMetaUpper mock_all_id_meta1; mock_all_id_meta1.init(); MockObAllIDMetaUpper mock_all_id_meta2; mock_all_id_meta2.init(); ObAllIDMetaLower all_id_meta1; ObAllIDMetaLower all_id_meta2; for(int i=0; iname()); MockObAllIDMetaUpper mock_all_id_meta1; MockObAllIDMetaUpper mock_all_id_meta2; ObAllIDMetaLower all_id_meta1; all_id_meta1.init(); ObAllIDMetaLower all_id_meta2; all_id_meta2.init(); for(int i=0; i