From 96b2d11b03b52d12ce139b050cb75e3be179c02e Mon Sep 17 00:00:00 2001 From: Dave Thaler Date: Thu, 2 Mar 2017 14:46:18 -0800 Subject: [PATCH] Enable GetNetworkInformationTest on windows Change-Id: Ic5f6449adb5ead85a2b5022a830397e3bb766a7a Signed-off-by: Dave Thaler Reviewed-on: https://gerrit.iotivity.org/gerrit/17635 Tested-by: jenkins-iotivity Reviewed-by: Dan Mihai --- resource/csdk/connectivity/test/ca_api_unittest.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/resource/csdk/connectivity/test/ca_api_unittest.cpp b/resource/csdk/connectivity/test/ca_api_unittest.cpp index e234da0..488271e 100755 --- a/resource/csdk/connectivity/test/ca_api_unittest.cpp +++ b/resource/csdk/connectivity/test/ca_api_unittest.cpp @@ -408,19 +408,16 @@ TEST_F (CATests, GetNetworkInformationTest) EXPECT_EQ(CA_STATUS_OK, CASelectNetwork(CA_ADAPTER_IP)); EXPECT_EQ(CA_STATUS_OK, CAGetNetworkInformation(&tempInfo, &tempSize)); -// @todo: if this api is supported on windows platform, it should be changed. -#if !defined(_WIN32) for (size_t index = 0; index < tempSize; index++) { EXPECT_TRUE(tempInfo[index].adapter != 0); EXPECT_TRUE(strlen(tempInfo[index].addr) != 0); } -#endif free(tempInfo); } -TEST_F(CATests, GetSelectecNetwork) +TEST_F(CATests, GetSelectedNetwork) { CATransportAdapter_t SelectedNetwork = CA_DEFAULT_ADAPTER; @@ -869,4 +866,4 @@ TEST(Ipv6ScopeLevel, invalidAddressTest) EXPECT_EQ(CA_STATUS_FAILED, CAGetIpv6AddrScope(invalidAddr2, &scopeLevel)); EXPECT_EQ(CA_STATUS_FAILED, CAGetIpv6AddrScope(invalidAddr3, &scopeLevel)); EXPECT_EQ(CA_STATUS_FAILED, CAGetIpv6AddrScope(invalidAddr4, &scopeLevel)); -} \ No newline at end of file +} -- 2.7.4