1cc290419Sopenharmony_ci/* 2cc290419Sopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd. 3cc290419Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4cc290419Sopenharmony_ci * you may not use this file except in compliance with the License. 5cc290419Sopenharmony_ci * You may obtain a copy of the License at 6cc290419Sopenharmony_ci * 7cc290419Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8cc290419Sopenharmony_ci * 9cc290419Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10cc290419Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11cc290419Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12cc290419Sopenharmony_ci * See the License for the specific language governing permissions and 13cc290419Sopenharmony_ci * limitations under the License. 14cc290419Sopenharmony_ci */ 15cc290419Sopenharmony_ci 16cc290419Sopenharmony_ci#ifndef HDC_JDWP_TEST_H 17cc290419Sopenharmony_ci#include <gmock/gmock.h> 18cc290419Sopenharmony_ci#include <gtest/gtest.h> 19cc290419Sopenharmony_ci#include "jdwp.h" 20cc290419Sopenharmony_ci#include "session.h" 21cc290419Sopenharmony_cinamespace Hdc { 22cc290419Sopenharmony_ciclass HdcJdwpTest : public testing::Test { 23cc290419Sopenharmony_cipublic: 24cc290419Sopenharmony_ci static void SetUpTestCase(void); 25cc290419Sopenharmony_ci static void TearDownTestCase(void); 26cc290419Sopenharmony_ci void SetUp(); 27cc290419Sopenharmony_ci void TearDown(); 28cc290419Sopenharmony_ci void TestInitjdwp(); 29cc290419Sopenharmony_ci std::unique_ptr<HdcJdwp> InstanceHdcJdwp(); 30cc290419Sopenharmony_ci 31cc290419Sopenharmony_ciprivate: 32cc290419Sopenharmony_ci}; 33cc290419Sopenharmony_ci 34cc290419Sopenharmony_ciclass HdcSessionTest : public Hdc::HdcSessionBase { 35cc290419Sopenharmony_cipublic: 36cc290419Sopenharmony_ci bool ServerCommand(const uint32_t sessionId, const uint32_t channelId, const uint16_t command, 37cc290419Sopenharmony_ci uint8_t *bufPtr, const int size) 38cc290419Sopenharmony_ci { 39cc290419Sopenharmony_ci return false; 40cc290419Sopenharmony_ci }; 41cc290419Sopenharmony_ci}; 42cc290419Sopenharmony_ci} // namespace Hdc 43cc290419Sopenharmony_ci#endif // HDC_JDWP_TEST_H