Home
last modified time | relevance | path

Searched refs:GPR_ASSERT (Results 1 – 25 of 626) sorted by relevance

12345678910>>...26

/third_party/grpc/test/core/gpr/
Dstring_test.cc41 GPR_ASSERT(0 == strcmp(src1, dst1)); in test_strdup()
44 GPR_ASSERT(nullptr == gpr_strdup(nullptr)); in test_strdup()
50 GPR_ASSERT(0 == strcmp(got, result)); in expect_dump()
66 GPR_ASSERT(!gpr_parse_bytes_to_uint32(s, strlen(s), &out)); in test_pu32_fail()
71 GPR_ASSERT(gpr_parse_bytes_to_uint32(s, strlen(s), &out)); in test_pu32_succeed()
72 GPR_ASSERT(out == want); in test_pu32_succeed()
116 GPR_ASSERT(gpr_asprintf(&buf, "%s", "") == 0); in test_asprintf()
117 GPR_ASSERT(buf[0] == '\0'); in test_asprintf()
122 GPR_ASSERT(gpr_asprintf(&buf, "%0*d", i, 1) == i); in test_asprintf()
126 GPR_ASSERT(buf[j] == '0'); in test_asprintf()
[all …]
Duseful_test.cc31 GPR_ASSERT(GPR_MIN(1, 2) == 1); in main()
32 GPR_ASSERT(GPR_MAX(1, 2) == 2); in main()
33 GPR_ASSERT(GPR_MIN(2, 1) == 1); in main()
34 GPR_ASSERT(GPR_MAX(2, 1) == 2); in main()
35 GPR_ASSERT(GPR_CLAMP(1, 0, 2) == 1); in main()
36 GPR_ASSERT(GPR_CLAMP(0, 0, 2) == 0); in main()
37 GPR_ASSERT(GPR_CLAMP(2, 0, 2) == 2); in main()
38 GPR_ASSERT(GPR_CLAMP(-1, 0, 2) == 0); in main()
39 GPR_ASSERT(GPR_CLAMP(3, 0, 2) == 2); in main()
40 GPR_ASSERT(GPR_ROTL((uint32_t)0x80000001, 1) == 3); in main()
[all …]
/third_party/grpc/test/core/client_channel/
Duri_parser_test.cc34 GPR_ASSERT(uri); in test_succeeds()
35 GPR_ASSERT(0 == strcmp(scheme, uri->scheme)); in test_succeeds()
36 GPR_ASSERT(0 == strcmp(authority, uri->authority)); in test_succeeds()
37 GPR_ASSERT(0 == strcmp(path, uri->path)); in test_succeeds()
38 GPR_ASSERT(0 == strcmp(query, uri->query)); in test_succeeds()
39 GPR_ASSERT(0 == strcmp(fragment, uri->fragment)); in test_succeeds()
46 GPR_ASSERT(nullptr == grpc_uri_parse(uri_text, 0)); in test_fails()
54 GPR_ASSERT(uri); in test_query_parts()
56 GPR_ASSERT(0 == strcmp("http", uri->scheme)); in test_query_parts()
57 GPR_ASSERT(0 == strcmp("foo", uri->authority)); in test_query_parts()
[all …]
/third_party/grpc/test/core/security/
Dsecurity_connector_test.cc88 GPR_ASSERT(grpc_check_security_level(GRPC_PRIVACY_AND_INTEGRITY, in test_check_security_level()
90 GPR_ASSERT(grpc_check_security_level(GRPC_PRIVACY_AND_INTEGRITY, in test_check_security_level()
92 GPR_ASSERT(grpc_check_security_level(GRPC_PRIVACY_AND_INTEGRITY, in test_check_security_level()
94 GPR_ASSERT(grpc_check_security_level(GRPC_INTEGRITY_ONLY, in test_check_security_level()
96 GPR_ASSERT(grpc_check_security_level(GRPC_INTEGRITY_ONLY, in test_check_security_level()
98 GPR_ASSERT(grpc_check_security_level(GRPC_INTEGRITY_ONLY, in test_check_security_level()
100 GPR_ASSERT(grpc_check_security_level(GRPC_SECURITY_NONE, in test_check_security_level()
102 GPR_ASSERT(grpc_check_security_level(GRPC_SECURITY_NONE, in test_check_security_level()
104 GPR_ASSERT(grpc_check_security_level(GRPC_SECURITY_NONE, in test_check_security_level()
111 GPR_ASSERT(tsi_construct_peer(2, &peer) == TSI_OK); in test_unauthenticated_ssl_peer()
[all …]
Djwt_verifier_test.cc178 GPR_ASSERT(d == nullptr); in test_jwt_issuer_email_domain()
180 GPR_ASSERT(d == nullptr); in test_jwt_issuer_email_domain()
182 GPR_ASSERT(d == nullptr); in test_jwt_issuer_email_domain()
184 GPR_ASSERT(d == nullptr); in test_jwt_issuer_email_domain()
186 GPR_ASSERT(strcmp(d, "foo") == 0); in test_jwt_issuer_email_domain()
188 GPR_ASSERT(strcmp(d, "foo.com") == 0); in test_jwt_issuer_email_domain()
190 GPR_ASSERT(strcmp(d, "foo.com") == 0); in test_jwt_issuer_email_domain()
192 GPR_ASSERT(strcmp(d, "foo.com") == 0); in test_jwt_issuer_email_domain()
194 GPR_ASSERT(strcmp(d, "foo.com") == 0); in test_jwt_issuer_email_domain()
199 GPR_ASSERT(strcmp(d, "foo") == 0); in test_jwt_issuer_email_domain()
[all …]
Dcheck_gcp_environment_linux_test.cc37 GPR_ASSERT(filename != nullptr); in check_bios_data_linux_test()
38 GPR_ASSERT(fp != nullptr); in check_bios_data_linux_test()
39 GPR_ASSERT(fwrite(data, 1, strlen(data), fp) == strlen(data)); in check_bios_data_linux_test()
51 GPR_ASSERT(check_bios_data_linux_test("Google")); in test_gcp_environment_check_success()
52 GPR_ASSERT(check_bios_data_linux_test("Google Compute Engine")); in test_gcp_environment_check_success()
54 GPR_ASSERT(check_bios_data_linux_test(" Google ")); in test_gcp_environment_check_success()
55 GPR_ASSERT(check_bios_data_linux_test("Google ")); in test_gcp_environment_check_success()
56 GPR_ASSERT(check_bios_data_linux_test(" Google")); in test_gcp_environment_check_success()
57 GPR_ASSERT(check_bios_data_linux_test(" Google Compute Engine ")); in test_gcp_environment_check_success()
58 GPR_ASSERT(check_bios_data_linux_test("Google Compute Engine ")); in test_gcp_environment_check_success()
[all …]
Djson_token_test.cc101 GPR_ASSERT(grpc_auth_json_key_is_valid(&json_key)); in test_parse_json_key_success()
102 GPR_ASSERT(json_key.type != nullptr && in test_parse_json_key_success()
104 GPR_ASSERT(json_key.private_key_id != nullptr && in test_parse_json_key_success()
107 GPR_ASSERT(json_key.client_id != nullptr && in test_parse_json_key_success()
111 GPR_ASSERT(json_key.client_email != nullptr && in test_parse_json_key_success()
115 GPR_ASSERT(json_key.private_key != nullptr); in test_parse_json_key_success()
131 GPR_ASSERT(!grpc_auth_json_key_is_valid(&json_key)); in test_parse_json_key_failure_bad_json()
147 GPR_ASSERT(!grpc_auth_json_key_is_valid(&json_key)); in test_parse_json_key_failure_no_type()
162 GPR_ASSERT(!grpc_auth_json_key_is_valid(&json_key)); in test_parse_json_key_failure_no_client_id()
176 GPR_ASSERT(!grpc_auth_json_key_is_valid(&json_key)); in test_parse_json_key_failure_no_client_email()
[all …]
Dauth_context_test.cc34 GPR_ASSERT(ctx != nullptr); in test_empty_context()
35 GPR_ASSERT(grpc_auth_context_peer_identity_property_name(ctx.get()) == in test_empty_context()
38 GPR_ASSERT(grpc_auth_property_iterator_next(&it) == nullptr); in test_empty_context()
40 GPR_ASSERT(grpc_auth_property_iterator_next(&it) == nullptr); in test_empty_context()
42 GPR_ASSERT(grpc_auth_property_iterator_next(&it) == nullptr); in test_empty_context()
43 GPR_ASSERT( in test_empty_context()
45 GPR_ASSERT(grpc_auth_context_peer_identity_property_name(ctx.get()) == in test_empty_context()
57 GPR_ASSERT(ctx != nullptr); in test_simple_context()
61 GPR_ASSERT(ctx->properties().count == 3); in test_simple_context()
62 GPR_ASSERT(grpc_auth_context_set_peer_identity_property_name(ctx.get(), in test_simple_context()
[all …]
Dcredentials_test.cc175 GPR_ASSERT(md_array.md == nullptr); in test_empty_md_array()
176 GPR_ASSERT(md_array.size == 0); in test_empty_md_array()
189 GPR_ASSERT(md_array.size == 1); in test_add_to_empty_md_array()
190 GPR_ASSERT(grpc_mdelem_eq(md, md_array.md[0])); in test_add_to_empty_md_array()
208 GPR_ASSERT(grpc_mdelem_eq(md_array.md[i], md)); in test_add_abunch_to_md_array()
220 GPR_ASSERT(grpc_oauth2_token_fetcher_credentials_parse_server_response( in test_oauth2_token_fetcher_creds_parsing_ok()
222 GPR_ASSERT(token_lifetime == 3599 * GPR_MS_PER_SEC); in test_oauth2_token_fetcher_creds_parsing_ok()
223 GPR_ASSERT(grpc_slice_str_cmp(GRPC_MDKEY(token_md), "authorization") == 0); in test_oauth2_token_fetcher_creds_parsing_ok()
224 GPR_ASSERT(grpc_slice_str_cmp(GRPC_MDVALUE(token_md), in test_oauth2_token_fetcher_creds_parsing_ok()
237 GPR_ASSERT(grpc_oauth2_token_fetcher_credentials_parse_server_response( in test_oauth2_token_fetcher_creds_parsing_bad_http_status()
[all …]
Dalts_security_connector_test.cc38 GPR_ASSERT(ctx == nullptr); in test_invalid_input_failure()
43 GPR_ASSERT(tsi_construct_peer(0, &peer) == TSI_OK); in test_empty_certificate_type_failure()
46 GPR_ASSERT(ctx == nullptr); in test_empty_certificate_type_failure()
52 GPR_ASSERT(tsi_construct_peer(1, &peer) == TSI_OK); in test_empty_peer_property_failure()
53 GPR_ASSERT(tsi_construct_string_peer_property_from_cstring( in test_empty_peer_property_failure()
58 GPR_ASSERT(ctx == nullptr); in test_empty_peer_property_failure()
64 GPR_ASSERT(tsi_construct_peer(kTsiAltsNumOfPeerProperties, &peer) == TSI_OK); in test_missing_rpc_protocol_versions_property_failure()
65 GPR_ASSERT(tsi_construct_string_peer_property_from_cstring( in test_missing_rpc_protocol_versions_property_failure()
68 GPR_ASSERT(tsi_construct_string_peer_property_from_cstring( in test_missing_rpc_protocol_versions_property_failure()
73 GPR_ASSERT(ctx == nullptr); in test_missing_rpc_protocol_versions_property_failure()
[all …]
/third_party/grpc/test/core/tsi/alts/handshaker/
Dtransport_security_common_api_test.cc33 GPR_ASSERT(l_versions != nullptr && r_versions != nullptr); in grpc_gcp_rpc_protocol_versions_equal()
52 GPR_ASSERT(grpc_gcp_rpc_protocol_versions_set_max( in test_success()
54 GPR_ASSERT(grpc_gcp_rpc_protocol_versions_set_min( in test_success()
58 GPR_ASSERT(grpc_gcp_rpc_protocol_versions_encode(&version, &encoded_slice)); in test_success()
60 GPR_ASSERT( in test_success()
62 GPR_ASSERT(grpc_gcp_rpc_protocol_versions_equal(&version, &decoded_version)); in test_success()
70 GPR_ASSERT(!grpc_gcp_rpc_protocol_versions_set_max( in test_failure()
72 GPR_ASSERT(!grpc_gcp_rpc_protocol_versions_set_min( in test_failure()
74 GPR_ASSERT(grpc_gcp_rpc_protocol_versions_set_max( in test_failure()
76 GPR_ASSERT(grpc_gcp_rpc_protocol_versions_set_min( in test_failure()
[all …]
Dalts_tsi_handshaker_test.cc156 GPR_ASSERT(grpc_gcp_handshaker_resp_set_peer_rpc_versions( in generate_handshaker_response()
185 GPR_ASSERT(grpc_gcp_handshaker_resp_set_peer_rpc_versions( in generate_handshaker_response()
225 GPR_ASSERT(0); in check_must_not_be_called()
232 GPR_ASSERT(status == TSI_OK); in on_client_start_success_cb()
233 GPR_ASSERT(user_data == nullptr); in on_client_start_success_cb()
234 GPR_ASSERT(bytes_to_send_size == strlen(ALTS_TSI_HANDSHAKER_TEST_OUT_FRAME)); in on_client_start_success_cb()
235 GPR_ASSERT(memcmp(bytes_to_send, ALTS_TSI_HANDSHAKER_TEST_OUT_FRAME, in on_client_start_success_cb()
237 GPR_ASSERT(result == nullptr); in on_client_start_success_cb()
240 GPR_ASSERT(tsi_handshaker_result_extract_peer(result, &peer) == in on_client_start_success_cb()
244 GPR_ASSERT(tsi_handshaker_result_create_frame_protector( in on_client_start_success_cb()
[all …]
Dalts_handshaker_client_test.cc65 GPR_ASSERT(versions != nullptr); in validate_rpc_protocol_versions()
70 GPR_ASSERT(grpc_gcp_RpcProtocolVersions_Version_major(max_version) == in validate_rpc_protocol_versions()
72 GPR_ASSERT(grpc_gcp_RpcProtocolVersions_Version_minor(max_version) == in validate_rpc_protocol_versions()
74 GPR_ASSERT(grpc_gcp_RpcProtocolVersions_Version_major(min_version) == in validate_rpc_protocol_versions()
76 GPR_ASSERT(grpc_gcp_RpcProtocolVersions_Version_minor(min_version) == in validate_rpc_protocol_versions()
83 GPR_ASSERT(target_identities_count == 2); in validate_target_identities()
86 GPR_ASSERT(upb_strview_eql( in validate_target_identities()
89 GPR_ASSERT(upb_strview_eql( in validate_target_identities()
100 GPR_ASSERT(c != nullptr && op != nullptr && nops != 0); in validate_op()
107 GPR_ASSERT((size_t)(op - start_op) <= kHandshakerClientOpNum); in validate_op()
[all …]
/third_party/grpc/test/core/slice/
Dslice_string_helpers_test.cc38 GPR_ASSERT(0 == strcmp(got, result)); in expect_slice_dump()
75 GPR_ASSERT(4 == parts->count); in test_strsplit()
76 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[0], "one")); in test_strsplit()
77 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[1], "two")); in test_strsplit()
78 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[2], "three")); in test_strsplit()
79 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[3], "four")); in test_strsplit()
86 GPR_ASSERT(1 == parts->count); in test_strsplit()
87 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[0], "one two three four")); in test_strsplit()
94 GPR_ASSERT(2 == parts->count); in test_strsplit()
95 GPR_ASSERT(0 == grpc_slice_str_cmp(parts->slices[0], "foo")); in test_strsplit()
[all …]
Dslice_buffer_test.cc38 GPR_ASSERT(buf.count > 0); in test_slice_buffer_add()
39 GPR_ASSERT(buf.length == 50); in test_slice_buffer_add()
41 GPR_ASSERT(buf.count == 0); in test_slice_buffer_add()
42 GPR_ASSERT(buf.length == 0); in test_slice_buffer_add()
49 GPR_ASSERT(buf.count > 0); in test_slice_buffer_add()
50 GPR_ASSERT(buf.length == 50); in test_slice_buffer_add()
56 GPR_ASSERT(buf.count == 0); in test_slice_buffer_add()
57 GPR_ASSERT(buf.length == 0); in test_slice_buffer_add()
89 GPR_ASSERT(src.length == src_len); in test_slice_buffer_move_first()
90 GPR_ASSERT(dst.length == dst_len); in test_slice_buffer_move_first()
[all …]
Dslice_test.cc51 GPR_ASSERT(slice.data.refcounted.bytes); in test_slice_malloc_returns_something_sensible()
54 GPR_ASSERT(GRPC_SLICE_LENGTH(slice) == length); in test_slice_malloc_returns_something_sensible()
70 GPR_ASSERT(slice.refcount); in test_slice_new_returns_something_sensible()
71 GPR_ASSERT(slice.data.refcounted.bytes == &x); in test_slice_new_returns_something_sensible()
72 GPR_ASSERT(slice.data.refcounted.length == 1); in test_slice_new_returns_something_sensible()
87 GPR_ASSERT(marker == 0); in test_slice_new_with_user_data()
88 GPR_ASSERT(GRPC_SLICE_LENGTH(slice) == 2); in test_slice_new_with_user_data()
89 GPR_ASSERT(GRPC_SLICE_START_PTR(slice)[0] == 0); in test_slice_new_with_user_data()
90 GPR_ASSERT(GRPC_SLICE_START_PTR(slice)[1] == 1); in test_slice_new_with_user_data()
94 GPR_ASSERT(marker == 1); in test_slice_new_with_user_data()
[all …]
/third_party/grpc/test/core/compression/
Dcompression_test.cc47 GPR_ASSERT(success != 0); in test_compression_algorithm_parse()
48 GPR_ASSERT(algorithm == valid_algorithms[i]); in test_compression_algorithm_parse()
57 GPR_ASSERT(success == 0); in test_compression_algorithm_parse()
75 GPR_ASSERT(success != 0); in test_compression_algorithm_name()
76 GPR_ASSERT(strcmp(name, valid_names[i]) == 0); in test_compression_algorithm_name()
81 GPR_ASSERT(success == 0); in test_compression_algorithm_name()
93 GPR_ASSERT(GRPC_COMPRESS_NONE == in test_compression_algorithm_for_level()
97 GPR_ASSERT(GRPC_COMPRESS_NONE == in test_compression_algorithm_for_level()
101 GPR_ASSERT(GRPC_COMPRESS_NONE == in test_compression_algorithm_for_level()
105 GPR_ASSERT(GRPC_COMPRESS_NONE == in test_compression_algorithm_for_level()
[all …]
/third_party/grpc/test/core/util/
Dhistogram_test.cc33 GPR_ASSERT(min_expect <= got); in expect_percentile()
34 GPR_ASSERT(got <= max_expect); in expect_percentile()
49 GPR_ASSERT(grpc_histogram_mean(h) == 10500); in test_simple()
68 GPR_ASSERT(grpc_histogram_count(h) == 4); in test_percentile()
69 GPR_ASSERT(grpc_histogram_minimum(h) == 2.5); in test_percentile()
70 GPR_ASSERT(grpc_histogram_maximum(h) == 8); in test_percentile()
71 GPR_ASSERT(grpc_histogram_sum(h) == 17); in test_percentile()
72 GPR_ASSERT(grpc_histogram_sum_of_squares(h) == 92.5); in test_percentile()
73 GPR_ASSERT(grpc_histogram_mean(h) == 4.25); in test_percentile()
74 GPR_ASSERT(grpc_histogram_variance(h) == 5.0625); in test_percentile()
[all …]
/third_party/grpc/test/core/iomgr/
Derror_test.cc31 GPR_ASSERT(error); in test_set_get_int()
33 GPR_ASSERT(grpc_error_get_int(error, GRPC_ERROR_INT_FILE_LINE, &i)); in test_set_get_int()
34 GPR_ASSERT(i); // line set will never be 0 in test_set_get_int()
35 GPR_ASSERT(!grpc_error_get_int(error, GRPC_ERROR_INT_ERRNO, &i)); in test_set_get_int()
36 GPR_ASSERT(!grpc_error_get_int(error, GRPC_ERROR_INT_SIZE, &i)); in test_set_get_int()
40 GPR_ASSERT(grpc_error_get_int(error, GRPC_ERROR_INT_ERRNO, &i)); in test_set_get_int()
41 GPR_ASSERT(i == errnumber); in test_set_get_int()
45 GPR_ASSERT(grpc_error_get_int(error, GRPC_ERROR_INT_HTTP2_ERROR, &i)); in test_set_get_int()
46 GPR_ASSERT(i == http); in test_set_get_int()
55 GPR_ASSERT(!grpc_error_get_str(error, GRPC_ERROR_STR_SYSCALL, &str)); in test_set_get_str()
[all …]
Dsockaddr_utils_test.cc41 GPR_ASSERT(data_len == sizeof(addr4->sin_addr.s_addr)); in make_addr4()
54 GPR_ASSERT(data_len == sizeof(addr6->sin6_addr.s6_addr)); in make_addr6()
63 GPR_ASSERT(addr6->sin6_family == GRPC_AF_INET6); in set_addr6_scope_id()
87 GPR_ASSERT(grpc_sockaddr_is_v4mapped(&input6, nullptr)); in test_sockaddr_is_v4mapped()
88 GPR_ASSERT(grpc_sockaddr_is_v4mapped(&input6, &output4)); in test_sockaddr_is_v4mapped()
90 GPR_ASSERT(memcmp(&expect4, &output4, sizeof(expect4)) == 0); in test_sockaddr_is_v4mapped()
94 GPR_ASSERT(!grpc_sockaddr_is_v4mapped(&input6, nullptr)); in test_sockaddr_is_v4mapped()
95 GPR_ASSERT(!grpc_sockaddr_is_v4mapped(&input6, &output4)); in test_sockaddr_is_v4mapped()
97 GPR_ASSERT(memcmp(&expect4, &output4, sizeof(expect4)) == 0); in test_sockaddr_is_v4mapped()
101 GPR_ASSERT(!grpc_sockaddr_is_v4mapped(&input4, nullptr)); in test_sockaddr_is_v4mapped()
[all …]
Dload_file_test.cc46 GPR_ASSERT(tmp_name != nullptr); in test_load_empty_file()
47 GPR_ASSERT(tmp != nullptr); in test_load_empty_file()
51 GPR_ASSERT(error == GRPC_ERROR_NONE); in test_load_empty_file()
52 GPR_ASSERT(GRPC_SLICE_LENGTH(slice) == 0); in test_load_empty_file()
55 GPR_ASSERT(error == GRPC_ERROR_NONE); in test_load_empty_file()
56 GPR_ASSERT(GRPC_SLICE_LENGTH(slice_with_null_term) == 1); in test_load_empty_file()
57 GPR_ASSERT(GRPC_SLICE_START_PTR(slice_with_null_term)[0] == 0); in test_load_empty_file()
74 GPR_ASSERT(tmp_name != nullptr); in test_load_failure()
75 GPR_ASSERT(tmp != nullptr); in test_load_failure()
80 GPR_ASSERT(error != GRPC_ERROR_NONE); in test_load_failure()
[all …]
Dresource_quota_test.cc42 GPR_ASSERT(!gpr_cv_wait(&g_cv, &g_mu, deadline)); in assert_counter_becomes()
61 GPR_ASSERT(error == GRPC_ERROR_NONE); in reclaimer_cb()
79 GPR_ASSERT(error == GRPC_ERROR_CANCELLED); in unused_reclaimer_cb()
123 GPR_ASSERT(!grpc_resource_user_alloc(usr, 1024, nullptr)); in test_instant_alloc_then_free()
141 GPR_ASSERT(!grpc_resource_user_alloc(usr, 1024, nullptr)); in test_instant_alloc_free_pair()
158 GPR_ASSERT(!grpc_resource_user_alloc(usr, 1024, set_event(&ev))); in test_simple_async_alloc()
160 GPR_ASSERT(gpr_event_wait(&ev, grpc_timeout_seconds_to_deadline(5)) != in test_simple_async_alloc()
169 GPR_ASSERT(grpc_resource_user_alloc(usr, 1024, nullptr)); in test_simple_async_alloc()
187 GPR_ASSERT(!grpc_resource_user_alloc(usr, 1024, set_event(&ev))); in test_async_alloc_blocked_by_size()
189 GPR_ASSERT(gpr_event_wait( in test_async_alloc_blocked_by_size()
[all …]
/third_party/grpc/test/core/surface/
Dbyte_buffer_reader_test.cc47 GPR_ASSERT(grpc_byte_buffer_reader_init(&reader, buffer) && in test_read_one_slice()
50 GPR_ASSERT(first_code != 0); in test_read_one_slice()
51 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(first_slice), "test", 4) == 0); in test_read_one_slice()
54 GPR_ASSERT(second_code == 0); in test_read_one_slice()
70 GPR_ASSERT(grpc_byte_buffer_reader_init(&reader, buffer) && in test_read_one_slice_malloc()
73 GPR_ASSERT(first_code != 0); in test_read_one_slice_malloc()
74 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(first_slice), "test", 4) == 0); in test_read_one_slice_malloc()
77 GPR_ASSERT(second_code == 0); in test_read_one_slice_malloc()
92 GPR_ASSERT(grpc_byte_buffer_reader_init(&reader, buffer) && in test_read_none_compressed_slice()
95 GPR_ASSERT(first_code != 0); in test_read_none_compressed_slice()
[all …]
/third_party/grpc/test/core/transport/chttp2/
Dhpack_table_test.cc41 GPR_ASSERT(grpc_slice_str_cmp(mdstr, str) == 0); in assert_str()
135 GPR_ASSERT(grpc_chttp2_hptbl_add(&tbl, elem) == GRPC_ERROR_NONE); in test_many_additions()
174 GPR_ASSERT(grpc_chttp2_hptbl_add(&tbl, elem) == GRPC_ERROR_NONE); in test_find()
178 GPR_ASSERT(grpc_chttp2_hptbl_add(&tbl, elem) == GRPC_ERROR_NONE); in test_find()
182 GPR_ASSERT(grpc_chttp2_hptbl_add(&tbl, elem) == GRPC_ERROR_NONE); in test_find()
186 GPR_ASSERT(r.index == 2 + GRPC_CHTTP2_LAST_STATIC_ENTRY); in test_find()
187 GPR_ASSERT(r.has_value == 1); in test_find()
190 GPR_ASSERT(r.index == 3 + GRPC_CHTTP2_LAST_STATIC_ENTRY); in test_find()
191 GPR_ASSERT(r.has_value == 1); in test_find()
194 GPR_ASSERT(r.index == 1 + GRPC_CHTTP2_LAST_STATIC_ENTRY); in test_find()
[all …]
/third_party/grpc/test/core/tsi/alts/frame_protector/
Dalts_counter_test.cc44 GPR_ASSERT(gsec_test_expect_compare_code_and_substr( in alts_counter_test_input_sanity_check()
51 GPR_ASSERT(gsec_test_expect_compare_code_and_substr( in alts_counter_test_input_sanity_check()
59 GPR_ASSERT(gsec_test_expect_compare_code_and_substr( in alts_counter_test_input_sanity_check()
66 GPR_ASSERT(status == GRPC_STATUS_OK); in alts_counter_test_input_sanity_check()
72 GPR_ASSERT(gsec_test_expect_compare_code_and_substr( in alts_counter_test_input_sanity_check()
78 GPR_ASSERT(gsec_test_expect_compare_code_and_substr( in alts_counter_test_input_sanity_check()
92 GPR_ASSERT(status == GRPC_STATUS_OK); in alts_counter_test_overflow_full_range()
99 GPR_ASSERT(do_bytes_represent_client(ctr, alts_counter_get_counter(ctr), in alts_counter_test_overflow_full_range()
101 GPR_ASSERT(memcmp(alts_counter_get_counter(ctr), expected, counter_size) == in alts_counter_test_overflow_full_range()
104 GPR_ASSERT(alts_counter_increment(ctr, &is_overflow, &error_details) == in alts_counter_test_overflow_full_range()
[all …]

12345678910>>...26