Here is some sample code here. We inject our mocked Queue class into
our Extension object. The first EXPECT_CALL returns the desired result
in arg 3. However The second expectation will pass no matter what we
put in the parameter for .Times. That is the issue we are having.
Queue = new MockQueue(NULL, "", "", 0, NULL);
Extension->SetQueue(Queue);
EXPECT_CALL(*Queue,
GetRouteInformation(StrEq("NOCHECK"),_,_,_,_,_,_,_,_))
.WillOnce(SetArgReferee<3>("UNDERTHRESHOLD"));
EXPECT_CALL(*Queue, CreateCall(_,_,_,_))
.Times(0);
Extension->Request(device, data);
> > Steven- Hide quoted text -
>
> - Show quoted text -