38 using namespace OpcUa;
43 const std::vector<char> expectedData =
54 using namespace OpcUa;
57 const std::vector<char> expectedData =
67 ASSERT_EQ(direction, BrowseDirection::Both);
77 using namespace OpcUa;
89 const std::vector<char> expectedData =
92 2, 0, 0, 0, 0, 0, 0, 0,
103 using namespace OpcUa;
106 const std::vector<char> expectedData =
109 2, 0, 0, 0, 0, 0, 0, 0,
131 using namespace OpcUa;
138 desc.
Direction = BrowseDirection::Inverse;
147 const std::vector<char> expectedData =
164 using namespace OpcUa;
167 const std::vector<char> expectedData =
198 using namespace OpcUa;
203 desc.
Direction = BrowseDirection::Inverse;
228 using namespace OpcUa;
251 const std::vector<char> expectedData =
253 1, 0, (char)0x0f, 0x2,
258 2, 0, 0, 0, 0, 0, 0, 0,
264 0, 1, 1, 0, 0, 0, 0, 2, 1, 2, 0, 0, 0, 4, 0, 0, 0,
265 0, 1, 1, 0, 0, 0, 0, 2, 1, 2, 0, 0, 0, 4, 0, 0, 0,
277 using namespace OpcUa;
280 const std::vector<char> expectedData =
282 1, 0, (char)0x0f, 0x2,
287 2, 0, 0, 0, 0, 0, 0, 0,
293 0, 1, 1, 0, 0, 0, 0, 2, 1, 2, 0, 0, 0, 4, 0, 0, 0,
294 0, 1, 1, 0, 0, 0, 0, 2, 1, 2, 0, 0, 0, 4, 0, 0, 0,
331 using namespace OpcUa;
359 const std::vector<char> expectedData =
364 3, 0, 4, 0, 0, 0,
'n',
'a',
'm',
'e',
366 3, 0, 0, 0,
'l',
'o',
'c',
367 4, 0, 0, 0,
't',
'e',
'x',
't',
379 using namespace OpcUa;
382 const std::vector<char> expectedData =
387 3, 0, 4, 0, 0, 0,
'n',
'a',
'm',
'e',
389 3, 0, 0, 0,
'l',
'o',
'c',
390 4, 0, 0, 0,
't',
'e',
'x',
't',
428 using namespace OpcUa;
457 using namespace OpcUa;
467 const std::vector<char> expectedData =
470 4, 0, 0, 0, 2, 3, 4, 5,
476 3, 0, 4, 0, 0, 0,
'n',
'a',
'm',
'e',
478 3, 0, 0, 0,
'l',
'o',
'c',
479 4, 0, 0, 0,
't',
'e',
'x',
't',
490 using namespace OpcUa;
493 const std::vector<char> expectedData =
496 4, 0, 0, 0, 2, 3, 4, 5,
502 3, 0, 4, 0, 0, 0,
'n',
'a',
'm',
'e',
504 3, 0, 0, 0,
'l',
'o',
'c',
505 4, 0, 0, 0,
't',
'e',
'x',
't',
516 std::vector<uint8_t> cont = {2, 3, 4, 5};
522 ASSERT_EQ(desc.ReferenceTypeId.TwoByteData.Identifier, 1);
525 ASSERT_EQ(desc.TargetNodeId.TwoByteData.Identifier, 2);
526 ASSERT_EQ(desc.BrowseName.NamespaceIndex, 3);
529 ASSERT_EQ(desc.DisplayName.Locale,
"loc");
530 ASSERT_EQ(desc.DisplayName.Text,
"text");
533 ASSERT_EQ(desc.TargetNodeTypeDefinition.TwoByteData.Identifier, 5);
551 using namespace OpcUa;
575 const std::vector<char> expectedData =
577 1, 0, (char)0x12, 0x2,
585 4, 0, 0, 0, 2, 3, 4, 5,
590 3, 0, 4, 0, 0, 0,
'n',
'a',
'm',
'e',
592 3, 0, 0, 0,
'l',
'o',
'c',
593 4, 0, 0, 0,
't',
'e',
'x',
't',
609 using namespace OpcUa;
612 const std::vector<char> expectedData =
614 1, 0, (char)0x12, 0x2,
622 4, 0, 0, 0, 2, 3, 4, 5,
627 3, 0, 4, 0, 0, 0,
'n',
'a',
'm',
'e',
629 3, 0, 0, 0,
'l',
'o',
'c',
630 4, 0, 0, 0,
't',
'e',
'x',
't',
663 using namespace OpcUa;
679 const std::vector<char> expectedData =
681 1, 0, (char)0x15, 0x2,
686 1, 0, 0, 0, 1, 0, 0, 0, 1
696 using namespace OpcUa;
699 const std::vector<char> expectedData =
701 1, 0, (char)0x15, 0x2,
706 1, 0, 0, 0, 1, 0, 0, 0, 1
730 using namespace OpcUa;
752 const std::vector<char> expectedData =
754 1, 0, (char)0x18, 0x2,
762 4, 0, 0, 0, 2, 3, 4, 5,
767 3, 0, 4, 0, 0, 0,
'n',
'a',
'm',
'e',
769 3, 0, 0, 0,
'l',
'o',
'c',
770 4, 0, 0, 0,
't',
'e',
'x',
't',
786 using namespace OpcUa;
789 const std::vector<char> expectedData =
791 1, 0, (char)0x18, 0x2,
799 4, 0, 0, 0, 2, 3, 4, 5,
804 3, 0, 4, 0, 0, 0,
'n',
'a',
'm',
'e',
806 3, 0, 0, 0,
'l',
'o',
'c',
807 4, 0, 0, 0,
't',
'e',
'x',
't',
839 using namespace OpcUa;
850 const std::vector<char> expectedData =
863 using namespace OpcUa;
866 const std::vector<char> expectedData =
889 using namespace OpcUa;
900 result.
Targets.push_back(target);
904 const std::vector<char> expectedData =
919 using namespace OpcUa;
922 const std::vector<char> expectedData =
949 using namespace OpcUa;
960 result.
Targets.push_back(target);
963 translateResult.
Paths.push_back(result);
967 const std::vector<char> expectedData =
984 using namespace OpcUa;
987 const std::vector<char> expectedData =
1014 using namespace OpcUa;
1024 result.
Targets.push_back(target);
1045 const std::vector<char> expectedData =
1047 1, 0, (char)0x2D, 0x2,
1070 using namespace OpcUa;
1073 const std::vector<char> expectedData =
1075 1, 0, (char)0x2D, 0x2,
1113 using namespace OpcUa;
1138 const std::vector<char> expectedData =
1140 1, 0, (char)0x2A, 0x2,
1150 2, 0, 4, 0, 0, 0,
'n',
'a',
'm',
'e',
1155 "Expected" << std::endl <<
PrintData(expectedData);
1161 using namespace OpcUa;
1164 const std::vector<char> expectedData =
1166 1, 0, (char)0x2A, 0x2,
1176 2, 0, 4, 0, 0, 0,
'n',
'a',
'm',
'e',
1193 ASSERT_EQ(browsePath.Path.Elements.size(), 1);
1199 ASSERT_EQ(element.TargetName.NamespaceIndex, 2);
1200 ASSERT_EQ(element.TargetName.Name,
"name");
OpcUa::BrowseResult CreateBrowseResult()
NodeId TwoByteNodeId(uint8_t value)
#define TEST_RESPONSE_HEADER_BINARY_DATA
std::vector< uint8_t > ContinuationPoint
OpcUa::BrowseDescription CreateBrowseDescription()
DiagnosticInfoList Diagnostics
DiagnosticInfoList Diagnostics
std::string PrintData(const std::vector< char > &vec)
Test of opc ua binary handshake. GNU LGPL.
std::vector< BrowseDescription > NodesToBrowse
TranslateBrowsePathsResult Result
std::vector< BrowsePath > BrowsePaths
std::vector< BrowseResult > Results
LocalizedText DisplayName
#define ASSERT_REQUEST_HEADER_EQ(header)
std::string AdditionalInfo
bool operator==(const OpcUa::BrowseDescription &lhs, const OpcUa::BrowseDescription &rhs)
TranslateBrowsePathsParameters Parameters
OStream< ChannelType > & flush(OStream< ChannelType > &os)
DiagnosticInfoList Diagnostics
struct OpcUa::NodeId::TwoByteDataType TwoByteData
bool ReleaseContinuationPoints
std::vector< BrowseResult > Results
std::shared_ptr< DiagnosticInfo > InnerDiagnostics
#define FILL_TEST_RESPONSE_HEADER(header)
#define TEST_REQUEST_HEADER_BINARY_DATA
#define FILL_TEST_REQUEST_HEADER(header)
std::vector< RelativePathElement > Elements
std::vector< BrowsePathResult > Paths
DiagnosticInfoMask EncodingMask
struct OpcUa::NodeId::FourByteDataType FourByteData
NodeClass TargetNodeClass
OPC UA Address space part. GNU LGPL.
#define ASSERT_TRUE(condition)
NodeId TargetNodeTypeDefinition
#define ASSERT_RESPONSE_HEADER_EQ(header)
#define ASSERT_EQ(val1, val2)
BrowseResultMask ResultMask
OpcUa::ReferenceDescription CreateReferenceDescription()
uint32_t RemainingPathIndex
uint32_t MaxReferenciesPerNode
OutputChannel & GetChannel()
BrowseDirection Direction
BinaryOStream & GetStream()
View service set. GNU LGPL.
std::vector< ReferenceDescription > Referencies
std::vector< BrowsePathTarget > Targets
TEST_F(ViewSerialization, BrowseDirection)
std::vector< std::vector< uint8_t > > ContinuationPoints
#define ASSERT_FALSE(condition)
const char DiagnosticInfo[]
std::size_t RawSize(const T &obj)