Skip to content

Commit

Permalink
debug the code
Browse files Browse the repository at this point in the history
  • Loading branch information
parvathika committed Nov 15, 2024
1 parent d4db8bf commit c2f2667
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions Tests/unittest/test_connectivity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,22 @@
#include <gtest/gtest.h>
#include <gmock/gmock.h>

enum nsm_ipversion
{
NSM_IPRESOLVE_WHATEVER = 0,
NSM_IPRESOLVE_V4 = 1,
NSM_IPRESOLVE_V6 = 2
};

using namespace std;
using namespace WPEFramework;
using namespace WPEFramework::Plugin;

enum nsm_internetState {
NO_INTERNET,
LIMITED_INTERNET,
CAPTIVE_PORTAL,
FULLY_CONNECTED,
UNKNOWN,
};


namespace WPEFramework
{
namespace Plugin
{
NetworkManagerImplementation* _instance;
nsm_internetState TestConnectivity::checkCurlResponse(const std::vector<std::string>& endpoints, long timeout_ms, bool headReq, nsm_ipversion ipversion)
{
return;
return nsm_internetState::FULLY_CONNECTED;
}
nsm_internetState TestConnectivity::checkInternetStateFromResponseCode(const std::vector<int>& responses)
{
return;
return nsm_internetState::NO_INTERNET;
}
}
}
Expand Down

0 comments on commit c2f2667

Please sign in to comment.