aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/memory_usage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-01-26 12:21:28 -0800
committerGravatar Craig Tiller <ctiller@google.com>2017-01-26 12:21:28 -0800
commitafceb2edbd909757d6e6c0f3d1d25b8d50893220 (patch)
tree8d374dc86ddafa272536ec98b71fe07f7b33213d /test/core/memory_usage
parent8b7372b1eefbd84d6c62aae27f219e0ea8c55a87 (diff)
parent4ffcb2058df96c1fa0a319cd3e5d4aa9358e5bae (diff)
Merge github.com:grpc/grpc into rollfwd
Diffstat (limited to 'test/core/memory_usage')
-rw-r--r--test/core/memory_usage/client.c8
-rw-r--r--test/core/memory_usage/server.c4
2 files changed, 7 insertions, 5 deletions
diff --git a/test/core/memory_usage/client.c b/test/core/memory_usage/client.c
index 0cab872014..09f0e2d867 100644
--- a/test/core/memory_usage/client.c
+++ b/test/core/memory_usage/client.c
@@ -81,7 +81,8 @@ static void init_ping_pong_request(int call_idx) {
op->flags = GRPC_INITIAL_METADATA_WAIT_FOR_READY;
op++;
op->op = GRPC_OP_RECV_INITIAL_METADATA;
- op->data.recv_initial_metadata = &calls[call_idx].initial_metadata_recv;
+ op->data.recv_initial_metadata.recv_initial_metadata =
+ &calls[call_idx].initial_metadata_recv;
op++;
grpc_slice hostname = grpc_slice_from_static_string("localhost");
@@ -138,10 +139,11 @@ static struct grpc_memory_counters send_snapshot_request(int call_idx,
op->op = GRPC_OP_SEND_CLOSE_FROM_CLIENT;
op++;
op->op = GRPC_OP_RECV_INITIAL_METADATA;
- op->data.recv_initial_metadata = &calls[call_idx].initial_metadata_recv;
+ op->data.recv_initial_metadata.recv_initial_metadata =
+ &calls[call_idx].initial_metadata_recv;
op++;
op->op = GRPC_OP_RECV_MESSAGE;
- op->data.recv_message = &response_payload_recv;
+ op->data.recv_message.recv_message = &response_payload_recv;
op++;
op->op = GRPC_OP_RECV_STATUS_ON_CLIENT;
op->data.recv_status_on_client.trailing_metadata =
diff --git a/test/core/memory_usage/server.c b/test/core/memory_usage/server.c
index e8774bd976..1cae4f4064 100644
--- a/test/core/memory_usage/server.c
+++ b/test/core/memory_usage/server.c
@@ -130,13 +130,13 @@ static void send_snapshot(void *tag, struct grpc_memory_counters *snapshot) {
op->data.send_initial_metadata.count = 0;
op++;
op->op = GRPC_OP_RECV_MESSAGE;
- op->data.recv_message = &terminal_buffer;
+ op->data.recv_message.recv_message = &terminal_buffer;
op++;
op->op = GRPC_OP_SEND_MESSAGE;
if (payload_buffer == NULL) {
gpr_log(GPR_INFO, "NULL payload buffer !!!");
}
- op->data.send_message = payload_buffer;
+ op->data.send_message.send_message = payload_buffer;
op++;
op->op = GRPC_OP_SEND_STATUS_FROM_SERVER;
op->data.send_status_from_server.status = GRPC_STATUS_OK;