Skip to content

Commit

Permalink
add legacy nw
Browse files Browse the repository at this point in the history
  • Loading branch information
parvathika committed Jan 3, 2025
1 parent be3a1e2 commit 05c6ee9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions LegacyPlugin_NetworkAPIs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ namespace WPEFramework
}

Core::SystemInfo::SetEnvironment(_T("THUNDER_ACCESS"), (_T("127.0.0.1:9998")));
m_networkmanager = make_shared<WPEFramework::JSONRPC::SmartLinkType<WPEFramework::Core::JSON::IElement> >(_T(NETWORK_MANAGER_CALLSIGN), _T("org.rdk.Network"), query);
m_networkmanager = make_shared<WPEFramework::JSONRPC::LinkType<WPEFramework::Core::JSON::IElement> >(_T(NETWORK_MANAGER_CALLSIGN), _T("org.rdk.Network"), query);

//subscribeToEvents();
subscribeToEvents();

return string();
}
Expand Down
2 changes: 1 addition & 1 deletion LegacyPlugin_NetworkAPIs.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ namespace WPEFramework {

private:
PluginHost::IShell* m_service;
std::shared_ptr<WPEFramework::JSONRPC::SmartLinkType<WPEFramework::Core::JSON::IElement>> m_networkmanager;
std::shared_ptr<WPEFramework::JSONRPC::LinkType<WPEFramework::Core::JSON::IElement>> m_networkmanager;
//WPEFramework::Exchange::INetworkManager* m_nwmgr;
NetworkManagerTimer m_timer;

Expand Down
7 changes: 6 additions & 1 deletion Tests/unit_test/test_LegacyPlugin_NetworkAPIs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ TEST_F(NetworkTest, RegisteredMethods)
EXPECT_EQ(Core::ERROR_NONE, handler.Exists(_T("setIPSettings")));
}


TEST_F(NetworkTest, getStbIp)
{
EXPECT_EQ(Core::ERROR_UNAVAILABLE, handler.Invoke(connection, _T("getStbIp)"), _T("{}"), response));
EXPECT_EQ(response, string(""));
}




Expand Down

0 comments on commit 05c6ee9

Please sign in to comment.