I have the following source:
TEST_F( TestOSCManager, TestOSCCreate )
{
GMockConfdMaapi *cm = reinterpret_cast<GMockConfdMaapi *>(this->getConfdUser()->getConfdMaapi() );
ConfdValue val;
val.setEnum(static_cast<uint32_t>(atl_2_port));
EXPECT_CALL( *cm, getAttribute("/equipment{chassis:1}/module{roadm:1/1/1}/roadm-card-type",_))
.Times(1)
.WillOnce(SetArgReferee<1>(val))
,WillOnce(Return(0));
EXPECT_CALL(*cm, openConnection()).Times(AtLeast(1));
EXPECT_CALL(*cm, startTransaction(false)).Times(AtLeast(1));
EXPECT_CALL(*cm, setNamespaceValue(_)).Times(AtLeast(1));
EXPECT_CALL(*cm, createItem( string("/dol/osc{osc:1/1/0/L1}"))).Times(1);
EXPECT_CALL(*cm, endTransaction()).Times(1);
string entity("roadm:1/1");
CreateOSC *coms = new CreateOSC( entity, this->instance() );
ASSERT_NO_THROW( coms->run() );
delete coms;
}
when I compile and I am including gmock.h, I get the following:
TestOSCManager.cc: In member function 'virtual void Bti::Atlas::Dol::UnitTest::TestOSCManager_TestOSCCreate_Test::TestBody()':
TestOSCManager.cc:225: error: 'SetArgReferee' was not declared in this scope
TestOSCManager.cc:226: error: 'Return' was not declared in this scope
TestOSCManager.cc:226: error: 'WillOnce' was not declared in this scope
Am I missing an include or something?
Thanks in advance for any help provided,
Pat