Sorry, my mistake - I had that already (just forgot to add it in the
initial post)...
the problem is still there - I am comfused with 'gmock_member' in
error message ... why is it there? Is it something wrong with my gmock
setup?
thanks.
On Jun 8, 3:56 pm, Gabriel Schine <that...@google.com> wrote:
> class MockClassA : public ClassA {...
>
> ?
>
>
>
>
>
> On Tue, Jun 8, 2010 at 12:25 PM, rkovacina <rkovac...@gmail.com> wrote:
> > Hi,
>
> > I am trying to use Google mock to create a mock object - very simple,
> > basic (nominal) case:
>
> > class ClassA {
>
> > virtual int member();
>
> > };
>
> > class MockClassA {
> > MOCK_METHOD0(member, int());
> > }
>
> > TEST_F()
> > {
> > :
> > ON_CALL(myMock, member()).WillByDefault(Return(0));
>
> > :
> > }
>
> > The compile fails with the mesage:
> > error: 'class ClassA' has no member named 'gmock_member'
>
> > What am I doing wrong?
>
> > Any help is appreciated...
>
> > Thanks.
>
> --
> Gabe Schine
> Google, Inc.
> (650)253-0697