30 using namespace OpcUa;
35 GetStream() << data <<
flush;
37 const std::vector<char> expectedData =
43 ASSERT_EQ(expectedData, GetChannel().SerializedData) <<
PrintData(GetChannel().SerializedData) << std::endl <<
PrintData(expectedData);
49 using namespace OpcUa;
56 GetStream() << data <<
flush;
59 const std::vector<char> expectedData =
66 ASSERT_EQ(expectedData, GetChannel().SerializedData) <<
PrintData(GetChannel().SerializedData) << std::endl <<
PrintData(expectedData);
72 using namespace OpcUa;
92 GetStream() << data <<
flush;
96 const std::vector<char> expectedData =
104 2, 0, 0, 0, 0, 0, 0, 0,
106 4, 0, 0, 0, 0, 0, 0, 0,
111 ASSERT_EQ(expectedData, GetChannel().SerializedData) <<
PrintData(GetChannel().SerializedData) << std::endl <<
PrintData(expectedData);
121 using namespace OpcUa;
124 const std::vector<char> expectedData =
129 GetChannel().SetData(expectedData);
139 using namespace OpcUa;
143 const std::vector<char> expectedData =
149 GetChannel().SetData(expectedData);
160 using namespace OpcUa;
173 const std::vector<char> expectedData =
178 2, 0, 0, 0, 0, 0, 0, 0,
180 4, 0, 0, 0, 0, 0, 0, 0,
184 GetChannel().SetData(expectedData);
201 using namespace OpcUa;
216 using namespace OpcUa;
std::string PrintData(const std::vector< char > &vec)
Test of opc ua binary handshake. GNU LGPL.
const uint8_t DATA_VALUE_STATUS_CODE
uint16_t ServerPicoseconds
const uint8_t DATA_VALUE_Server_TIMESTAMP
OStream< ChannelType > & flush(OStream< ChannelType > &os)
const uint8_t DATA_VALUE_SOURCE_PICOSECONDS
const uint8_t DATA_VALUE_SOURCE_TIMESTAMP
#define ASSERT_NO_THROW(statement)
OPC UA Address space part. GNU LGPL.
const uint8_t DATA_VALUE_Server_PICOSECONDS
#define ASSERT_TRUE(condition)
#define ASSERT_EQ(val1, val2)
TEST(DataValue, ConstructivbeFromDataValue)
TEST_F(OpcUaBinarySerialization, DataValue_NULL)
Test of opc ua binary attributes. GNU LGPL.
#define ASSERT_FALSE(condition)
uint16_t SourcePicoseconds
std::size_t RawSize(const T &obj)