X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fresource-encapsulation%2Fsrc%2FresourceCache%2Funittests%2FDataCacheTest.cpp;h=41029b753cead1f9673deba0a63081412500edfe;hb=390866079e285d2c74918432c0d597d5da52f8a0;hp=41c3e6a868850f7af150a9a94dc2d18574e6e227;hpb=3e9402ad71cb3e93266a77796f44d17bab9853fd;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/resource-encapsulation/src/resourceCache/unittests/DataCacheTest.cpp b/service/resource-encapsulation/src/resourceCache/unittests/DataCacheTest.cpp index 41c3e6a..41029b7 100644 --- 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 *) {}); + + mocks.OnCall(pResource.get(), PrimitiveResource::isObservable).Return(false); cacheHandler.reset(new DataCache()); cb = ([](std::shared_ptr, 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); - int seq; + int seq = 0; callback(hos, rep, OC_STACK_OK, seq); return; }