MB-24424: Pass correct parameters when making MutationResponse 02/78302/16
authorDaniel Owen <owend@couchbase.com>
Thu, 18 May 2017 11:50:22 +0000 (12:50 +0100)
committerDave Rigby <daver@couchbase.com>
Wed, 24 May 2017 15:04:59 +0000 (15:04 +0000)
commit00142436fa9fcec88d49ce26c7aa51921fbdb0a8
tree33f755fb0a365e05e4a0a16717d26990c5153a80
parentae257aaada0a25fc0ed7ccd1ec8e789b7c43c32b
MB-24424: Pass correct parameters when making MutationResponse

The isKeyOnly parameter was missing when passed into make_unique. This
patch fixes this issue.  In addition it moves the creation of a
PassiveStream into a separate function.  This enables the function that
creates a PassiveStream to be overridden with one that creates a
MockPassiveStream, which is used in testing.

Change-Id: I58e2e8ca06acba24573d1b4a53aeed85dbcecffa
Reviewed-on: http://review.couchbase.org/78302
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
src/dcp/consumer.cc
src/dcp/consumer.h
src/dcp/stream.h
tests/mock/mock_dcp_consumer.h
tests/mock/mock_stream.h
tests/module_tests/dcp_test.cc