11 #ifndef __OPC_UA_TESTS_COMMON_H__ 12 #define __OPC_UA_TESTS_COMMON_H__ 16 #include <gmock/gmock.h> 17 #include <gtest/gtest.h> 24 if (
const char *
uri = getenv(
"TEST_Server_URI"))
26 return OpcUa::Internal::Uri(
uri).Host();
34 if (
const char *
uri = getenv(
"TEST_Server_URI"))
36 return OpcUa::Internal::Uri(
uri).Port();
44 if (
char * endpoint = getenv(
"TEST_Server_URI"))
49 return "opc.tcp://localhost:4841";
53 #endif // __OPC_UA_TESTS_COMMON_H__
std::string GetHost()
Test of opc ua binary handshake. GNU LGPL.
std::string GetEndpoint()