X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fresource-container%2Funittests%2FResourceContainerTest.cpp;h=423e8e12c6c7d61d3fd97959c8bddd43c1679620;hb=7f00f942c39b7bc27c7eeecf213a239c3fe4173c;hp=63100fa43de423ad2efee344e4f7723eef89dcf1;hpb=edcfc3d2329da7b914771c0dcff5f42c9b74fd93;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/resource-container/unittests/ResourceContainerTest.cpp b/service/resource-container/unittests/ResourceContainerTest.cpp index 63100fa..423e8e1 100644 --- a/service/resource-container/unittests/ResourceContainerTest.cpp +++ b/service/resource-container/unittests/ResourceContainerTest.cpp @@ -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; });