1ca0551cfSopenharmony_ci/* 2ca0551cfSopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 3ca0551cfSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4ca0551cfSopenharmony_ci * you may not use this file except in compliance with the License. 5ca0551cfSopenharmony_ci * You may obtain a copy of the License at 6ca0551cfSopenharmony_ci * 7ca0551cfSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8ca0551cfSopenharmony_ci * 9ca0551cfSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10ca0551cfSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11ca0551cfSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12ca0551cfSopenharmony_ci * See the License for the specific language governing permissions and 13ca0551cfSopenharmony_ci * limitations under the License. 14ca0551cfSopenharmony_ci */ 15ca0551cfSopenharmony_ci 16ca0551cfSopenharmony_ci#ifndef OHOS_IPC_TEST_SERVICE_CLIENT_H 17ca0551cfSopenharmony_ci#define OHOS_IPC_TEST_SERVICE_CLIENT_H 18ca0551cfSopenharmony_ci 19ca0551cfSopenharmony_ci#include "ipc_debug.h" 20ca0551cfSopenharmony_ci#include "idl_test_service_proxy.h" 21ca0551cfSopenharmony_ci 22ca0551cfSopenharmony_ci#define LOG_ID_IPC 0xD003900 23ca0551cfSopenharmony_ci 24ca0551cfSopenharmony_cinamespace OHOS { 25ca0551cfSopenharmony_ciclass TestClient { 26ca0551cfSopenharmony_cipublic: 27ca0551cfSopenharmony_ci int ConnectService(); 28ca0551cfSopenharmony_ci void StartIntTransaction(); 29ca0551cfSopenharmony_ci void StartStringTransaction(); 30ca0551cfSopenharmony_ciprivate: 31ca0551cfSopenharmony_ci static constexpr HiviewDFX::HiLogLabel LABEL = { LOG_CORE, LOG_ID_IPC, "TestClient" }; 32ca0551cfSopenharmony_ci sptr<IdlTestServiceProxy> testService_; 33ca0551cfSopenharmony_ci}; 34ca0551cfSopenharmony_ci} // namespace OHOS 35ca0551cfSopenharmony_ci#endif // OHOS_IPC_TEST_SERVICE_CLIENT_H 36