replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / service / resource-container / unittests / ResourceContainerTest.cpp
index 63100fa..423e8e1 100644 (file)
@@ -48,7 +48,7 @@ string CONFIG_FILE = "ResourceContainerTestConfig.xml";
 
 void getCurrentPath(std::string *pPath)
 {
-    char buffer[MAX_PATH];
+    char buffer[MAX_PATH] = {0,};
 
 #if defined(__linux__)
     char *strPath = NULL;
@@ -735,7 +735,7 @@ TEST_F(DiscoverResourceUnitTest, onUpdateCalled)
 
 namespace
 {
-    void onCacheCB(const RCSResourceAttributes &)
+    void onCacheCB(const RCSResourceAttributes &, int)
     {
     }
 }
@@ -814,7 +814,7 @@ TEST_F(RemoteResourceUnitTest, onCacheCBCalled)
 {
     bool isCalled = false;
     mocks.ExpectCallFunc(onCacheCB).Do(
-        [this, &isCalled](const RCSResourceAttributes &)
+        [this, &isCalled](const RCSResourceAttributes &, int)
     {
         isCalled = true;
     });