Google Mock : Setting argument in EXPECT_CALL
<p>I am trying to set a class member function parameter value in Google Mock, but I get build errors and I simply don't understand what is going on.  Would it be possible for someone to explain please.</p>

<p>The function prototype is:</p>

<pre><code>virtual int recv( Socket socket
                , char *buffer
                , int bufferLength
                , int flags ) = 0;
</code></pre>

<p>I am trying to test it using:</p>

<pre><code>TEST_F( IPV4SocketTests, Read_SockErr_ok )
{
    Mock_SocketAdaptor *adaptor = new Mock_SocketAdaptor;
    char *rcvBuffer = "testingRcvWorks";

    EXPECT_CALL( *adaptor, recv( testing::_, testing::_, testing::_, testing::_ ) )
    .WillRepeatedly( testing::DoAll(
        testing::SetArgPointee&lt;1&gt;( rcvBuffer ),
        testing::Return( strlen( rcvBuffer ) ) ) );
</code></pre>

<p>The error I am getting is regarding conversion from std::get.</p>