aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/support/slice_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/support/slice_test.c')
-rw-r--r--test/core/support/slice_test.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/core/support/slice_test.c b/test/core/support/slice_test.c
index 9e0e22c24b..2df38376a9 100644
--- a/test/core/support/slice_test.c
+++ b/test/core/support/slice_test.c
@@ -66,7 +66,7 @@ static void test_slice_malloc_returns_something_sensible(void) {
}
/* We must be able to write to every byte of the data */
for (i = 0; i < length; i++) {
- GPR_SLICE_START_PTR(slice)[i] = (gpr_uint8)i;
+ GPR_SLICE_START_PTR(slice)[i] = (uint8_t)i;
}
/* And finally we must succeed in destroying the slice */
gpr_slice_unref(slice);
@@ -76,7 +76,7 @@ static void test_slice_malloc_returns_something_sensible(void) {
static void do_nothing(void *ignored) {}
static void test_slice_new_returns_something_sensible(void) {
- gpr_uint8 x;
+ uint8_t x;
gpr_slice slice = gpr_slice_new(&x, 1, do_nothing);
GPR_ASSERT(slice.refcount);
@@ -93,7 +93,7 @@ static void do_nothing_with_len_1(void *ignored, size_t len) {
}
static void test_slice_new_with_len_returns_something_sensible(void) {
- gpr_uint8 x;
+ uint8_t x;
int num_refs = 5; /* To test adding/removing an arbitrary number of refs */
int i;
@@ -131,7 +131,7 @@ static void test_slice_sub_works(unsigned length) {
beginning of the slice. */
slice = gpr_slice_malloc(length);
for (i = 0; i < length; i++) {
- GPR_SLICE_START_PTR(slice)[i] = (gpr_uint8)i;
+ GPR_SLICE_START_PTR(slice)[i] = (uint8_t)i;
}
/* Ensure that for all subsets length is correct and that we start on the
@@ -141,7 +141,7 @@ static void test_slice_sub_works(unsigned length) {
sub = gpr_slice_sub(slice, i, j);
GPR_ASSERT(GPR_SLICE_LENGTH(sub) == j - i);
for (k = 0; k < j - i; k++) {
- GPR_ASSERT(GPR_SLICE_START_PTR(sub)[k] == (gpr_uint8)(i + k));
+ GPR_ASSERT(GPR_SLICE_START_PTR(sub)[k] == (uint8_t)(i + k));
}
gpr_slice_unref(sub);
}
@@ -170,7 +170,7 @@ static void test_slice_split_head_works(size_t length) {
beginning of the slice. */
slice = gpr_slice_malloc(length);
for (i = 0; i < length; i++) {
- GPR_SLICE_START_PTR(slice)[i] = (gpr_uint8)i;
+ GPR_SLICE_START_PTR(slice)[i] = (uint8_t)i;
}
/* Ensure that for all subsets length is correct and that we start on the
@@ -198,7 +198,7 @@ static void test_slice_split_tail_works(size_t length) {
beginning of the slice. */
slice = gpr_slice_malloc(length);
for (i = 0; i < length; i++) {
- GPR_SLICE_START_PTR(slice)[i] = (gpr_uint8)i;
+ GPR_SLICE_START_PTR(slice)[i] = (uint8_t)i;
}
/* Ensure that for all subsets length is correct and that we start on the