From b51c8cf9644c5b4cff140ccd3b5081b73f06b181 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Thu, 24 Sep 2015 14:24:30 -0700 Subject: [PATCH] Fixed code that would only compile on buggy compilers. Corrected lambda capture of member. Caused compilation to fail on gcc newer than 4.6. Corrected order of GTest assert macro parameters. Change-Id: I04f653fb70d9e68ee97df2f68bbaa965513c621f Signed-off-by: Jon A. Cruz Reviewed-on: https://gerrit.iotivity.org/gerrit/3057 Tested-by: jenkins-iotivity Reviewed-by: JungYong KIM Reviewed-by: Madan Lanka --- .../NotificationManager/src/unittest/ResourceHostingUnitTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/notification-manager/NotificationManager/src/unittest/ResourceHostingUnitTest.cpp b/service/notification-manager/NotificationManager/src/unittest/ResourceHostingUnitTest.cpp index 404c953..483c977 100644 --- a/service/notification-manager/NotificationManager/src/unittest/ResourceHostingUnitTest.cpp +++ b/service/notification-manager/NotificationManager/src/unittest/ResourceHostingUnitTest.cpp @@ -87,7 +87,7 @@ TEST_F(ResourceHostingTest, HostingFoundBeforeMakeOriginServer) std::string uri = ""; mocks.OnCallFunc(onDiscoveryResource).Do( - [this, &uri, &testObject, &discoveryTask](RCSRemoteResourceObject::Ptr ptr) + [this, &uri, &testObject](RCSRemoteResourceObject::Ptr ptr) { if(ptr->getUri() == testObject->getHostedServerUri()) { @@ -105,7 +105,7 @@ TEST_F(ResourceHostingTest, HostingFoundBeforeMakeOriginServer) testObject->destroy(); - ASSERT_EQ(uri, mirroredUri); + ASSERT_EQ(mirroredUri, uri); } TEST_F(ResourceHostingTest, startHosting) -- 2.7.4