27 #include <gmock/gmock.h> 28 #include <gtest/gtest.h> 56 std::vector<OpcUa::AddNodesResult> newNodesResult =
NameSpace->AddNodes({item});
57 return newNodesResult[0].AddedNodeId;
70 std::vector<OpcUa::AddNodesResult> results =
NameSpace->AddNodes({newNode});
83 std::vector<OpcUa::AddNodesResult> results =
NameSpace->AddNodes({newNode});
95 std::vector<OpcUa::DataValue> results =
NameSpace->Read(readParams);
108 bool callbackCalled =
false;
113 callbackValue = value;
114 callbackCalled =
true;
123 std::vector<OpcUa::StatusCode> result =
NameSpace->Write({value});
130 callbackCalled =
false;
131 NameSpace->DeleteDataChangeCallback(callbackHandle);
150 std::vector<OpcUa::DataValue> result =
NameSpace->Read(readParams);
std::vector< OpcUa::ReadValueId > AttributesToRead
OpcUa::NodeId CreateValue()
ReadValueId ToReadValueId(NodeId id, AttributeId attr)
TEST_F(TestInfoTest, Names)
NodeId RequestedNewNodeId
#define EXPECT_TRUE(condition)
static Server::AddressSpace::SharedPtr NameSpace
#define ASSERT_NE(val1, val2)
Common::Logger::SharedPtr Logger
bool Value(const T &value, M matcher)
void FillStandardNamespace(OpcUa::NodeManagementServices ®istry, const Common::Logger::SharedPtr &logger)
#define EXPECT_NE(expected, actual)
#define ASSERT_EQ(val1, val2)
NodeAttributes Attributes
AddressSpace::UniquePtr CreateAddressSpace(const Common::Logger::SharedPtr &logger)
OpcUa::Server::AddressSpace::UniquePtr NameSpace
#define EXPECT_EQ(expected, actual)
std::shared_ptr< logger > stderr_color_mt(const std::string &logger_name)
#define ASSERT_FALSE(condition)
OpcUa::AttributeId AttributeId