projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git]
/
service
/
resource-container
/
unittests
/
ResourceContainerTest.cpp
diff --git
a/service/resource-container/unittests/ResourceContainerTest.cpp
b/service/resource-container/unittests/ResourceContainerTest.cpp
index
63100fa
..
423e8e1
100644
(file)
--- 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)
{
void getCurrentPath(std::string *pPath)
{
- char buffer[MAX_PATH];
+ char buffer[MAX_PATH]
= {0,}
;
#if defined(__linux__)
char *strPath = NULL;
#if defined(__linux__)
char *strPath = NULL;
@@
-735,7
+735,7
@@
TEST_F(DiscoverResourceUnitTest, onUpdateCalled)
namespace
{
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(
{
bool isCalled = false;
mocks.ExpectCallFunc(onCacheCB).Do(
- [this, &isCalled](const RCSResourceAttributes &)
+ [this, &isCalled](const RCSResourceAttributes &
, int
)
{
isCalled = true;
});
{
isCalled = true;
});