aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/slice
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-11-17 12:16:05 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-11-17 12:16:05 -0800
commit7d4116fa44752dcb10da3a5dee95c05214423ac5 (patch)
tree3f2f8aeb21cf920b92bb175e25454f96691e7425 /test/core/slice
parent0451c3dbfcf7dcab791a4a2b10f284ac4723da8e (diff)
All core tests compile without grpc_mdstr
Diffstat (limited to 'test/core/slice')
-rw-r--r--test/core/slice/slice_test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/core/slice/slice_test.c b/test/core/slice/slice_test.c
index a14f15ccfa..ddb66f9dea 100644
--- a/test/core/slice/slice_test.c
+++ b/test/core/slice/slice_test.c
@@ -62,8 +62,10 @@ static void test_slice_malloc_returns_something_sensible(void) {
GPR_ASSERT(GRPC_SLICE_LENGTH(slice) == length);
/* If the slice has a refcount, it must be destroyable. */
if (slice.refcount) {
- GPR_ASSERT(slice.refcount->ref != NULL);
- GPR_ASSERT(slice.refcount->unref != NULL);
+ GPR_ASSERT(slice.refcount->vtable != NULL);
+ GPR_ASSERT(slice.refcount->vtable->ref != NULL);
+ GPR_ASSERT(slice.refcount->vtable->unref != NULL);
+ GPR_ASSERT(slice.refcount->vtable->hash != NULL);
}
/* We must be able to write to every byte of the data */
for (i = 0; i < length; i++) {