--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To post to this group, send email to c...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CACWgwAYyPDXHPzkbbjkWCZ0fW-b43OfQQweU1E%3DpsLXP%3DdnW6g%40mail.gmail.com.
The usual idiom I see in Chromium code is to define a forwarding method which delegates to Gmock [1][2]:class MockFoo : public Foo {public:void Method(std::unique_ptr<Bar>);MOCK_METHOD1(Method, Bar*);
};Daniel
--On Sun, Oct 9, 2016 at 8:31 PM 'Avi Drissman' via cxx <c...@chromium.org> wrote:OK, I may have found a way around the issue by using lambdas and captured references, which is too clever for my own good but might actually work... :(--On Sun, Oct 9, 2016 at 10:53 PM, Avi Drissman <a...@google.com> wrote:I'm working on moving autofill to use containers with owned pointers, but autofill heavily uses gmock, which seems to be rather unhappy about mocking out methods that have move-only types as parameters.https://github.com/google/googlemock/blob/master/googlemock/docs/DesignDoc.md talks about the far-off world of C++0x, and there's an open issue https://github.com/google/googletest/issues/395 about exactly this.Is there a new gmock we can bring in? The right way to proceed isn't obvious here to me.Avi
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To post to this group, send email to c...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CACWgwAYyPDXHPzkbbjkWCZ0fW-b43OfQQweU1E%3DpsLXP%3DdnW6g%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To post to this group, send email to c...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAF3XrKrxKkmGsx5feW8Ydr4H7gtvM-XoLYNvxg9cwXbTWRbN9Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAHtyhaTQoRwaeDcPR7qE_oAWPnTcT9vze3m%2B%3D0UK353Af6Ee7A%40mail.gmail.com.