diff options
author | Craig Tiller <ctiller@google.com> | 2015-08-05 15:59:27 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-08-05 15:59:27 -0700 |
commit | 2c3be1df4f30ea8c7defe55d395b5da3c9b57619 (patch) | |
tree | d8daedee29c76228d50326b7c64f41fe32dc3fd3 /src | |
parent | e40f964e5510bd3a2bbb159916a16c35acaba00f (diff) |
Add tests for C++ propagation
Diffstat (limited to 'src')
-rw-r--r-- | src/cpp/client/client_context.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cpp/client/client_context.cc b/src/cpp/client/client_context.cc index 80b6393f01..1ed2d38961 100644 --- a/src/cpp/client/client_context.cc +++ b/src/cpp/client/client_context.cc @@ -66,11 +66,11 @@ ClientContext::~ClientContext() { } } -ClientContext ClientContext::FromServerContext(const ServerContext& context, - PropagationOptions options) { - ClientContext ctx; - ctx.propagate_from_call_ = context.call_; - ctx.propagation_options_ = options; +std::unique_ptr<ClientContext> ClientContext::FromServerContext( + const ServerContext& context, PropagationOptions options) { + std::unique_ptr<ClientContext> ctx(new ClientContext); + ctx->propagate_from_call_ = context.call_; + ctx->propagation_options_ = options; return ctx; } |