projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.1.0
[platform/upstream/iotivity.git]
/
service
/
resource-encapsulation
/
src
/
resourceCache
/
unittests
/
DataCacheTest.cpp
diff --git
a/service/resource-encapsulation/src/resourceCache/unittests/DataCacheTest.cpp
b/service/resource-encapsulation/src/resourceCache/unittests/DataCacheTest.cpp
index
41c3e6a
..
41029b7
100644
(file)
--- a/
service/resource-encapsulation/src/resourceCache/unittests/DataCacheTest.cpp
+++ b/
service/resource-encapsulation/src/resourceCache/unittests/DataCacheTest.cpp
@@
-51,6
+51,8
@@
class DataCacheTest : public TestWithMock
{
TestWithMock::SetUp();
pResource = PrimitiveResource::Ptr(mocks.Mock< PrimitiveResource >(), [](PrimitiveResource *) {});
{
TestWithMock::SetUp();
pResource = PrimitiveResource::Ptr(mocks.Mock< PrimitiveResource >(), [](PrimitiveResource *) {});
+
+ mocks.OnCall(pResource.get(), PrimitiveResource::isObservable).Return(false);
cacheHandler.reset(new DataCache());
cb = ([](std::shared_ptr<PrimitiveResource >, const RCSResourceAttributes &)->OCStackResult {return OC_STACK_OK;});
}
cacheHandler.reset(new DataCache());
cb = ([](std::shared_ptr<PrimitiveResource >, const RCSResourceAttributes &)->OCStackResult {return OC_STACK_OK;});
}
@@
-95,7
+97,7
@@
TEST_F(DataCacheTest, initializeDataCache_normalCaseObservable)
OIC::Service::HeaderOptions hos;
OIC::Service::RCSResourceAttributes attr;
OIC::Service::ResponseStatement rep(attr);
OIC::Service::HeaderOptions hos;
OIC::Service::RCSResourceAttributes attr;
OIC::Service::ResponseStatement rep(attr);
- int seq;
+ int seq
= 0
;
callback(hos, rep, OC_STACK_OK, seq);
return;
}
callback(hos, rep, OC_STACK_OK, seq);
return;
}