aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end/cq_verifier_uv.c
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2016-10-07 09:55:35 -0700
committerGravatar murgatroid99 <mlumish@google.com>2016-10-07 09:55:35 -0700
commit2c287ca750c114c7230e57a1231d7e22863ab53d (patch)
tree2c74c603ba071ccb3c0ab64e2494d28f641d2cac /test/core/end2end/cq_verifier_uv.c
parenteebb129fd39c050a9d3b325fcd89df8aadb09218 (diff)
UV tests pass on linux
Diffstat (limited to 'test/core/end2end/cq_verifier_uv.c')
-rw-r--r--test/core/end2end/cq_verifier_uv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/core/end2end/cq_verifier_uv.c b/test/core/end2end/cq_verifier_uv.c
index 329dacf97e..74ac673f20 100644
--- a/test/core/end2end/cq_verifier_uv.c
+++ b/test/core/end2end/cq_verifier_uv.c
@@ -38,6 +38,7 @@
#include <uv.h>
#include <grpc/support/alloc.h>
+#include <grpc/support/log.h>
#include "test/core/end2end/cq_verifier_internal.h"
@@ -65,7 +66,7 @@ cq_verifier *cq_verifier_create(grpc_completion_queue *cq) {
return v;
}
-void timer_close_cb(uv_handle_t *handle) {
+static void timer_close_cb(uv_handle_t *handle) {
handle->data = (void *)TIMER_CLOSED;
}
@@ -86,12 +87,12 @@ void cq_verifier_set_first_expectation(cq_verifier *v, expectation *e) {
v->first_expectation = e;
}
-void timer_run_cb(uv_timer_t *timer) {
+static void timer_run_cb(uv_timer_t *timer) {
timer->data = (void *)TIMER_TRIGGERED;
}
grpc_event cq_verifier_next_event(cq_verifier *v, int timeout_seconds) {
-uint64_t timeout_ms = timeout_seconds < 0 ? 0 : (uint64_t)timeout_seconds * 1000;
+ uint64_t timeout_ms = timeout_seconds < 0 ? 0 : (uint64_t)timeout_seconds * 1000;
grpc_event ev;
v->timer.data = (void *)TIMER_STARTED;
uv_timer_start(&v->timer, timer_run_cb, timeout_ms, 0);