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 <jonc@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3057
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: JungYong KIM <jyong2.kim@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
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())
{
testObject->destroy();
- ASSERT_EQ(uri, mirroredUri);
+ ASSERT_EQ(mirroredUri, uri);
}
TEST_F(ResourceHostingTest, startHosting)