25 #include <gmock/gmock.h> 26 #include <gtest/gtest.h> 61 std::unique_ptr<Common::AddonsManager>
Addons;
73 std::shared_ptr<OpcUa::Services>
computer = computerAddon->GetServices();
81 std::shared_ptr<OpcUa::Services>
computer = computerAddon->GetServices();
82 std::shared_ptr<OpcUa::EndpointServices> endpoints = computer->Endpoints();
83 std::vector<OpcUa::EndpointDescription> desc;
93 std::shared_ptr<OpcUa::Services>
computer = computerAddon->GetServices();
94 std::shared_ptr<OpcUa::EndpointServices> endpoints = computer->Endpoints();
95 std::vector<OpcUa::ApplicationDescription> servers;
105 std::shared_ptr<OpcUa::Services>
computer = computerAddon->GetServices();
106 std::shared_ptr<OpcUa::ViewServices> views = computer->Views();
118 std::vector<OpcUa::BrowseResult> results = views->Browse(query);
120 ASSERT_EQ(results[0].Referencies.size(), 3);
129 std::shared_ptr<OpcUa::Services>
computer = computerAddon->GetServices();
149 std::shared_ptr<OpcUa::Services>
computer = computerAddon->GetServices();
150 std::shared_ptr<OpcUa::SubscriptionServices> subscriptions = computer->Subscriptions();
169 subscriptions.reset();
176 std::shared_ptr<OpcUa::Services>
computer = computerAddon->GetServices();
177 std::shared_ptr<OpcUa::AttributeServices> attributes = computer->Attributes();
182 std::vector<OpcUa::DataValue> values = attributes->Read(params);
std::vector< OpcUa::ReadValueId > AttributesToRead
OpcUa::CreateSubscriptionParameters Parameters
ReadValueId ToReadValueId(NodeId id, AttributeId attr)
ApplicationDescription ClientDescription
TEST_F(TestInfoTest, Names)
std::vector< BrowseDescription > NodesToBrowse
double RequestedPublishingInterval
uint32_t MaxNotificationsPerPublish
const char OpcUaProtocolAddonId[]
uint32_t RequestedMaxKeepAliveCount
Common::AddonInformation CreateAsioAddon()
void RegisterBuiltinServerAddon(Common::AddonsManager &addons)
uint32_t RequestedLifetimeCount
void RegisterStandardNamespace(Common::AddonsManager &addons)
AddonsManager::UniquePtr CreateAddonsManager(const Common::Logger::SharedPtr &logger)
Get instance of addons core.
void RegisterServicesRegistry(Common::AddonsManager &addons)
void RegisterAddressSpace(Common::AddonsManager &addons)
#define ASSERT_NO_THROW(statement)
std::unique_ptr< Common::AddonsManager > Addons
#define ASSERT_TRUE(condition)
#define ASSERT_EQ(val1, val2)
OpcUa::LocalizedText ApplicationName
BrowseResultMask ResultMask
void RegisterEndpointsServicesAddon(Common::AddonsManager &addons)
Common::AddonInformation CreateSubscriptionServiceAddon()
BrowseDirection Direction
Common::Logger::SharedPtr Logger
std::shared_ptr< logger > stderr_color_mt(const std::string &logger_name)