Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuhammedrafi committed Dec 3, 2024
1 parent 9319c3b commit 9a885bd
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Tests/unit_test/test_Legacy_WifiManager.cpp
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
#include <gtest/gtest.h>
#include "LegacyPlugin_WiFiManagerAPIs.h"

#include "ServiceMock.h"
#include "FactoriesImplementation.h"

using namespace WPEFramework;

using ::testing::NiceMock;

class WifiManagerTest : public ::testing::Test {
class WiFiManagerTest : public ::testing::Test {
protected:
Core::ProxyType<Plugin::WifiManager> plugin;
Core::ProxyType<Plugin::WiFiManager> plugin;
Core::JSONRPC::Handler& handler;
Core::JSONRPC::Connection connection;
Core::JSONRPC::Message message;
ServiceMock services;

WifiManagerTest()
: plugin(Core::ProxyType<Plugin::WifiManager>::Create())
WiFiManagerTest()
: plugin(Core::ProxyType<Plugin::WiFiManager>::Create())
, handler(*(plugin))
, connection(1, 0){}
virtual ~WifiManagerTest() override{}
virtual ~WiFiManagerTest() override{}
};

TEST_F(WifiManagerTest, TestedAPIsShouldExist)
TEST_F(WiFiManagerTest, TestedAPIsShouldExist)
{
EXPECT_EQ(Core::ERROR_NONE, handler.Exists(_T("startScan")));
EXPECT_EQ(Core::ERROR_NONE, handler.Exists(_T("stopScan")));
Expand Down

0 comments on commit 9a885bd

Please sign in to comment.