When notification service build,
before unittest is commented why unittest has fail case and build error.
Fail case is resolved other patch by Jaesick.shin.
In this patch, build error is fixed.
Change-Id: Id5a588f719ae8b6eb1ac78bf987dd793da208c14
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10707
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
'service/notification', 'NSConsumerInterface.h')
# Go to build Unit test
'service/notification', 'NSConsumerInterface.h')
# Go to build Unit test
-#if target_os == 'linux':
-# SConscript('unittest/SConscript')
+if target_os == 'linux':
+ SConscript('unittest/SConscript')
# Go to build sample apps
SConscript('examples/SConscript')
# Go to build sample apps
SConscript('examples/SConscript')
std::cout << __func__ << std::endl;
}
std::cout << __func__ << std::endl;
}
- static void NSSubscriptionAcceptedCallback(NSProvider *)
+ static void NSProviderChangedCallback(NSProvider *, NSResponse)
{
std::cout << __func__ << std::endl;
}
{
std::cout << __func__ << std::endl;
}
{
NSConsumerConfig cfg;
cfg.discoverCb = NSProviderDiscoveredCallbackEmpty;
{
NSConsumerConfig cfg;
cfg.discoverCb = NSProviderDiscoveredCallbackEmpty;
- cfg.acceptedCb = NSSubscriptionAcceptedCallback;
+ cfg.changedCb = NSProviderChangedCallback;
cfg.messageCb = NSNotificationReceivedCallbackEmpty;
cfg.syncInfoCb = NSSyncCallbackEmpty;
EXPECT_EQ(NS_OK, NSStartConsumer(cfg));
cfg.messageCb = NSNotificationReceivedCallbackEmpty;
cfg.syncInfoCb = NSSyncCallbackEmpty;
EXPECT_EQ(NS_OK, NSStartConsumer(cfg));
NSConsumerConfig cfg;
cfg.discoverCb = NSProviderDiscoveredCallbackEmpty;
NSConsumerConfig cfg;
cfg.discoverCb = NSProviderDiscoveredCallbackEmpty;
- cfg.acceptedCb = NSSubscriptionAcceptedCallback;
+ cfg.changedCb = NSProviderChangedCallback;
cfg.messageCb = NSNotificationReceivedCallbackEmpty;
cfg.syncInfoCb = NSSyncCallbackEmpty;
NSStartConsumer(cfg);
cfg.messageCb = NSNotificationReceivedCallbackEmpty;
cfg.syncInfoCb = NSSyncCallbackEmpty;
NSStartConsumer(cfg);
NSConsumerConfig cfg;
cfg.discoverCb = NSProviderDiscoveredCallbackEmpty;
NSConsumerConfig cfg;
cfg.discoverCb = NSProviderDiscoveredCallbackEmpty;
- cfg.acceptedCb = NSSubscriptionAcceptedCallback;
+ cfg.changedCb = NSProviderChangedCallback;
cfg.messageCb = NSNotificationReceivedCallbackEmpty;
cfg.syncInfoCb = NSSyncCallbackEmpty;
NSStartConsumer(cfg);
cfg.messageCb = NSNotificationReceivedCallbackEmpty;
cfg.syncInfoCb = NSSyncCallbackEmpty;
NSStartConsumer(cfg);
NSConsumerConfig cfg;
cfg.discoverCb = NSProviderDiscoveredCallbackEmpty;
NSConsumerConfig cfg;
cfg.discoverCb = NSProviderDiscoveredCallbackEmpty;
- cfg.acceptedCb = NSSubscriptionAcceptedCallback;
+ cfg.changedCb = NSProviderChangedCallback;
cfg.messageCb = NSNotificationReceivedCallbackEmpty;
cfg.syncInfoCb = NSSyncCallbackEmpty;
NSStartConsumer(cfg);
cfg.messageCb = NSNotificationReceivedCallbackEmpty;
cfg.syncInfoCb = NSSyncCallbackEmpty;
NSStartConsumer(cfg);