Donate Share

Mock Objects for C++

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Comparing pointers -- what am I doing wrong?

You are viewing a single message from this topic. View all messages.

  1. 2008-11-14 17:38:51 UTC
    Hmm ok, I was a bit hasty in the code I provided, in order for it to work the mocker would have to look like :
    MOCKPP_NS::ChainableMockMethod<void, node, HPAClusterAbstraction> addParentMocker;
    Which is a silly since the addParent method takes pointers in the first place...

    Anyway, the same benefit from using mockpp::same can be achieved by using mockpp::eq on pointers.

    MAT.
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.