aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/util/passthru_endpoint.h
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-11-09 17:46:29 -0800
committerGravatar Yash Tibrewal <yashkt@google.com>2017-11-09 17:46:29 -0800
commit4e9265c828f0b559b5fdba04913fed46bf771399 (patch)
tree4a379fc2bdc037753cf8d81f8b86327e4bc50a42 /test/core/util/passthru_endpoint.h
parent0ee7574732a06e8cace4e099a678f4bd5dbff679 (diff)
parentd9da7387b8057f3bd99a417a5ee905377bce9296 (diff)
Merge with master
Diffstat (limited to 'test/core/util/passthru_endpoint.h')
-rw-r--r--test/core/util/passthru_endpoint.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/test/core/util/passthru_endpoint.h b/test/core/util/passthru_endpoint.h
index 6d28c2cbcd..bddd8ea6a2 100644
--- a/test/core/util/passthru_endpoint.h
+++ b/test/core/util/passthru_endpoint.h
@@ -19,21 +19,17 @@
#ifndef MOCK_ENDPOINT_H
#define MOCK_ENDPOINT_H
-#include "src/core/lib/iomgr/endpoint.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include <grpc/support/atm.h>
-typedef struct { int num_writes; } grpc_passthru_endpoint_stats;
+#include "src/core/lib/iomgr/endpoint.h"
-void grpc_passthru_endpoint_create(grpc_endpoint **client,
- grpc_endpoint **server,
- grpc_resource_quota *resource_quota,
- grpc_passthru_endpoint_stats *stats);
+typedef struct {
+ gpr_atm num_writes;
+} grpc_passthru_endpoint_stats;
-#ifdef __cplusplus
-}
-#endif
+void grpc_passthru_endpoint_create(grpc_endpoint** client,
+ grpc_endpoint** server,
+ grpc_resource_quota* resource_quota,
+ grpc_passthru_endpoint_stats* stats);
#endif