Added test for iotivity configure, removed nmdaemon tests
authorAndriy Gudz <a.gudz@samsung.com>
Tue, 25 Apr 2017 08:38:19 +0000 (11:38 +0300)
committerAndriy Gudz <a.gudz@samsung.com>
Tue, 25 Apr 2017 08:38:19 +0000 (11:38 +0300)
network-manager/test/test_IoT.cpp
network-manager/test/test_nmdaemon.cpp

index 4f3112a..9993585 100644 (file)
@@ -3,6 +3,8 @@
 
 #include <gtest/gtest.h>
 
+#include "OCPlatform.h"
+#include "OCApi.h"
 #include "IOT_DeviceFinder.h"
 
 using namespace std;
@@ -22,3 +24,9 @@ TEST(test_IoT, IOT_DeviceFinder)
     }
     ASSERT_TRUE(res);
 }
+
+TEST(test_IoT, configureTest)
+{
+    OC::PlatformConfig config { OC::ServiceType::InProc, OC::ModeType::Both, "0.0.0.0", 0, OC::QualityOfService::HighQos };
+    ASSERT_NO_THROW(OC::OCPlatform::Configure(config));
+}
index 1398a16..c105a53 100644 (file)
@@ -63,9 +63,9 @@ bool test()
     return (s_res == 3);
 }
 
-TEST(test_nmdaemon, test)
-{
-    std::cout << "=== start ===" << std::endl;
-    ASSERT_TRUE(test());
-    std::cout << "=== stop ===" << std::endl;
-}
+//TEST(test_nmdaemon, test)
+//{
+//    std::cout << "=== start ===" << std::endl;
+//    ASSERT_TRUE(test());
+//    std::cout << "=== stop ===" << std::endl;
+//}