Fix windows build.

pull/10742/head
Mark D. Roth 8 years ago
parent f186d9d35b
commit 493be1f1b9
  1. 4
      test/core/slice/slice_hash_table_test.c

@ -116,10 +116,12 @@ static void test_slice_hash_table() {
};
const size_t num_entries = GPR_ARRAY_SIZE(test_entries);
// Construct table.
grpc_slice_hash_table_entry entries[num_entries];
grpc_slice_hash_table_entry* entries =
gpr_zalloc(sizeof(*entries) * num_entries);
populate_entries(test_entries, num_entries, entries);
grpc_slice_hash_table* table =
grpc_slice_hash_table_create(num_entries, entries, destroy_string);
gpr_free(entries);
// Check contents of table.
check_values(test_entries, num_entries, table);
check_non_existent_value("XX", table);

Loading…
Cancel
Save