/* * Copyright 2022 Young Mei * * SPDX-License-Identifier: Apache-2.0 */ #ifndef TESTS_LIB_THRIFT_THRIFTTEST_SRC_CONTEXT_HPP_ #define TESTS_LIB_THRIFT_THRIFTTEST_SRC_CONTEXT_HPP_ #include #include #include #include "ThriftTest.h" using namespace apache::thrift::server; using namespace thrift::test; struct ctx { enum { SERVER, CLIENT, }; std::array fds; std::unique_ptr client; std::unique_ptr server; pthread_t server_thread; }; extern ctx context; #endif /* TESTS_LIB_THRIFT_THRIFTTEST_SRC_CONTEXT_HPP_ */