Home
last modified time | relevance | path

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

12345678910>>...24

/external/grpc-grpc/test/core/tsi/alts/handshaker/
Dalts_handshaker_service_api_test.cc39 GPR_ASSERT( in main()
42 GPR_ASSERT(grpc_gcp_handshaker_req_encode(req, &encoded_req)); in main()
43 GPR_ASSERT(grpc_gcp_handshaker_req_decode(encoded_req, decoded_req)); in main()
44 GPR_ASSERT(grpc_gcp_handshaker_req_equals(req, decoded_req)); in main()
52 GPR_ASSERT(grpc_gcp_handshaker_req_set_handshake_protocol( in main()
54 GPR_ASSERT(grpc_gcp_handshaker_req_set_local_identity_hostname( in main()
56 GPR_ASSERT(grpc_gcp_handshaker_req_set_local_endpoint( in main()
58 GPR_ASSERT(grpc_gcp_handshaker_req_set_remote_endpoint( in main()
60 GPR_ASSERT(grpc_gcp_handshaker_req_add_application_protocol(req, "grpc")); in main()
61 GPR_ASSERT(grpc_gcp_handshaker_req_add_application_protocol(req, "http2")); in main()
[all …]
Dalts_tsi_handshaker_test.cc117 GPR_ASSERT(grpc_gcp_handshaker_resp_set_code(resp, 0)); in generate_handshaker_response()
123 GPR_ASSERT(grpc_gcp_handshaker_resp_set_out_frames( in generate_handshaker_response()
128 GPR_ASSERT(grpc_gcp_handshaker_resp_set_out_frames( in generate_handshaker_response()
131 GPR_ASSERT(grpc_gcp_handshaker_resp_set_peer_identity_service_account( in generate_handshaker_response()
133 GPR_ASSERT(grpc_gcp_handshaker_resp_set_bytes_consumed( in generate_handshaker_response()
135 GPR_ASSERT(grpc_gcp_handshaker_resp_set_key_data( in generate_handshaker_response()
138 GPR_ASSERT(grpc_gcp_handshaker_resp_set_peer_rpc_versions( in generate_handshaker_response()
145 GPR_ASSERT(grpc_gcp_handshaker_resp_set_peer_identity_service_account( in generate_handshaker_response()
147 GPR_ASSERT(grpc_gcp_handshaker_resp_set_bytes_consumed( in generate_handshaker_response()
149 GPR_ASSERT(grpc_gcp_handshaker_resp_set_key_data( in generate_handshaker_response()
[all …]
Dtransport_security_common_api_test.cc33 GPR_ASSERT(l_versions != nullptr && r_versions != nullptr); in grpc_gcp_rpc_protocol_versions_equal()
60 GPR_ASSERT(grpc_gcp_rpc_protocol_versions_set_max( in test_success()
62 GPR_ASSERT(grpc_gcp_rpc_protocol_versions_set_min( in test_success()
68 GPR_ASSERT(grpc_gcp_rpc_protocol_versions_encode_to_raw_bytes( in test_success()
72 GPR_ASSERT(grpc_gcp_rpc_protocol_versions_encode(&version, &encoded_slice)); in test_success()
74 GPR_ASSERT(encoded_length == GRPC_SLICE_LENGTH(encoded_slice)); in test_success()
75 GPR_ASSERT(memcmp(encoded_bytes, GRPC_SLICE_START_PTR(encoded_slice), in test_success()
78 GPR_ASSERT( in test_success()
80 GPR_ASSERT(grpc_gcp_rpc_protocol_versions_equal(&version, &decoded_version)); in test_success()
89 GPR_ASSERT(!grpc_gcp_rpc_protocol_versions_set_max( in test_failure()
[all …]
Dalts_handshaker_client_test.cc62 GPR_ASSERT(grpc_gcp_rpc_protocol_versions_set_max( in alts_tsi_event_create_for_testing()
64 GPR_ASSERT(grpc_gcp_rpc_protocol_versions_set_min( in alts_tsi_event_create_for_testing()
73 GPR_ASSERT(versions != nullptr); in validate_rpc_protocol_versions()
74 GPR_ASSERT(versions->max_rpc_version.major == kMaxRpcVersionMajor); in validate_rpc_protocol_versions()
75 GPR_ASSERT(versions->max_rpc_version.minor == kMaxRpcVersionMinor); in validate_rpc_protocol_versions()
76 GPR_ASSERT(versions->min_rpc_version.major == kMinRpcVersionMajor); in validate_rpc_protocol_versions()
77 GPR_ASSERT(versions->min_rpc_version.minor == kMinRpcVersionMinor); in validate_rpc_protocol_versions()
90 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(*service_account1), in validate_target_identities()
93 GPR_ASSERT(strlen(ALTS_HANDSHAKER_CLIENT_TEST_TARGET_SERVICE_ACCOUNT1) == in validate_target_identities()
95 GPR_ASSERT(memcmp(GRPC_SLICE_START_PTR(*service_account2), in validate_target_identities()
[all …]
/external/grpc-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 …]
/external/grpc-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 …]
/external/grpc-grpc/test/core/iomgr/
Dwakeup_fd_cv_test.cc63 GPR_ASSERT(nfds == 3); in mock_poll()
64 GPR_ASSERT(fds[0].fd == 20); in mock_poll()
65 GPR_ASSERT(fds[1].fd == 30); in mock_poll()
66 GPR_ASSERT(fds[2].fd == 50); in mock_poll()
67 GPR_ASSERT(fds[0].events == (POLLIN | POLLHUP)); in mock_poll()
68 GPR_ASSERT(fds[1].events == (POLLIN | POLLHUP)); in mock_poll()
69 GPR_ASSERT(fds[2].events == POLLIN); in mock_poll()
95 GPR_ASSERT(grpc_wakeup_fd_init(&fd[i]) == GRPC_ERROR_NONE); in test_many_fds()
107 GPR_ASSERT(grpc_wakeup_fd_init(&cvfd1) == GRPC_ERROR_NONE); in test_poll_cv_trigger()
108 GPR_ASSERT(grpc_wakeup_fd_init(&cvfd2) == GRPC_ERROR_NONE); in test_poll_cv_trigger()
[all …]
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 …]
/external/grpc-grpc/test/core/security/
Djwt_verifier_test.cc176 GPR_ASSERT(d == nullptr); in test_jwt_issuer_email_domain()
178 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(strcmp(d, "foo") == 0); in test_jwt_issuer_email_domain()
186 GPR_ASSERT(strcmp(d, "foo.com") == 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()
197 GPR_ASSERT(strcmp(d, "foo") == 0); in test_jwt_issuer_email_domain()
[all …]
Dsecurity_connector_test.cc86 GPR_ASSERT(tsi_construct_peer(1, &peer) == TSI_OK); in test_unauthenticated_ssl_peer()
87 GPR_ASSERT(tsi_construct_string_peer_property_from_cstring( in test_unauthenticated_ssl_peer()
91 GPR_ASSERT(ctx != nullptr); in test_unauthenticated_ssl_peer()
92 GPR_ASSERT(!grpc_auth_context_peer_is_authenticated(ctx)); in test_unauthenticated_ssl_peer()
93 GPR_ASSERT(check_transport_security_type(ctx)); in test_unauthenticated_ssl_peer()
96 GPR_ASSERT(check_ssl_peer_equivalence(&peer, &rpeer)); in test_unauthenticated_ssl_peer()
110 GPR_ASSERT(grpc_auth_context_peer_is_authenticated(ctx)); in check_identity()
180 GPR_ASSERT(tsi_construct_peer(3, &peer) == TSI_OK); in test_cn_only_ssl_peer_to_auth_context()
181 GPR_ASSERT(tsi_construct_string_peer_property_from_cstring( in test_cn_only_ssl_peer_to_auth_context()
184 GPR_ASSERT(tsi_construct_string_peer_property_from_cstring( in test_cn_only_ssl_peer_to_auth_context()
[all …]
Djson_token_test.cc99 GPR_ASSERT(grpc_auth_json_key_is_valid(&json_key)); in test_parse_json_key_success()
100 GPR_ASSERT(json_key.type != nullptr && in test_parse_json_key_success()
102 GPR_ASSERT(json_key.private_key_id != nullptr && in test_parse_json_key_success()
105 GPR_ASSERT(json_key.client_id != nullptr && in test_parse_json_key_success()
109 GPR_ASSERT(json_key.client_email != nullptr && in test_parse_json_key_success()
113 GPR_ASSERT(json_key.private_key != nullptr); in test_parse_json_key_success()
129 GPR_ASSERT(!grpc_auth_json_key_is_valid(&json_key)); in test_parse_json_key_failure_bad_json()
145 GPR_ASSERT(!grpc_auth_json_key_is_valid(&json_key)); in test_parse_json_key_failure_no_type()
160 GPR_ASSERT(!grpc_auth_json_key_is_valid(&json_key)); in test_parse_json_key_failure_no_client_id()
174 GPR_ASSERT(!grpc_auth_json_key_is_valid(&json_key)); in test_parse_json_key_failure_no_client_email()
[all …]
Dauth_context_test.cc32 GPR_ASSERT(ctx != nullptr); in test_empty_context()
33 GPR_ASSERT(grpc_auth_context_peer_identity_property_name(ctx) == nullptr); in test_empty_context()
35 GPR_ASSERT(grpc_auth_property_iterator_next(&it) == nullptr); in test_empty_context()
37 GPR_ASSERT(grpc_auth_property_iterator_next(&it) == nullptr); in test_empty_context()
39 GPR_ASSERT(grpc_auth_property_iterator_next(&it) == nullptr); in test_empty_context()
40 GPR_ASSERT(grpc_auth_context_set_peer_identity_property_name(ctx, "bar") == in test_empty_context()
42 GPR_ASSERT(grpc_auth_context_peer_identity_property_name(ctx) == nullptr); in test_empty_context()
52 GPR_ASSERT(ctx != nullptr); in test_simple_context()
56 GPR_ASSERT(ctx->properties.count == 3); in test_simple_context()
57 GPR_ASSERT(grpc_auth_context_set_peer_identity_property_name(ctx, "name") == in test_simple_context()
[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 …]
Dalts_security_connector_test.cc38 GPR_ASSERT(grpc_alts_auth_context_from_tsi_peer(nullptr, &ctx) == in test_invalid_input_failure()
40 GPR_ASSERT(grpc_alts_auth_context_from_tsi_peer(&peer, nullptr) == in test_invalid_input_failure()
47 GPR_ASSERT(tsi_construct_peer(0, &peer) == TSI_OK); in test_empty_certificate_type_failure()
48 GPR_ASSERT(grpc_alts_auth_context_from_tsi_peer(&peer, &ctx) == in test_empty_certificate_type_failure()
50 GPR_ASSERT(ctx == nullptr); in test_empty_certificate_type_failure()
57 GPR_ASSERT(tsi_construct_peer(1, &peer) == TSI_OK); in test_empty_peer_property_failure()
58 GPR_ASSERT(tsi_construct_string_peer_property_from_cstring( in test_empty_peer_property_failure()
61 GPR_ASSERT(grpc_alts_auth_context_from_tsi_peer(&peer, &ctx) == in test_empty_peer_property_failure()
63 GPR_ASSERT(ctx == nullptr); in test_empty_peer_property_failure()
70 GPR_ASSERT(tsi_construct_peer(kTsiAltsNumOfPeerProperties, &peer) == TSI_OK); in test_missing_rpc_protocol_versions_property_failure()
[all …]
/external/grpc-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 …]
/external/grpc-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 …]
/external/grpc-grpc/test/core/compression/
Dcompression_test.cc44 GPR_ASSERT(success != 0); in test_compression_algorithm_parse()
45 GPR_ASSERT(algorithm == valid_algorithms[i]); in test_compression_algorithm_parse()
54 GPR_ASSERT(success == 0); in test_compression_algorithm_parse()
72 GPR_ASSERT(success != 0); in test_compression_algorithm_name()
73 GPR_ASSERT(strcmp(name, valid_names[i]) == 0); in test_compression_algorithm_name()
78 GPR_ASSERT(success == 0); in test_compression_algorithm_name()
90 GPR_ASSERT(GRPC_COMPRESS_NONE == in test_compression_algorithm_for_level()
94 GPR_ASSERT(GRPC_COMPRESS_NONE == in test_compression_algorithm_for_level()
98 GPR_ASSERT(GRPC_COMPRESS_NONE == in test_compression_algorithm_for_level()
102 GPR_ASSERT(GRPC_COMPRESS_NONE == in test_compression_algorithm_for_level()
[all …]
Dstream_compression_test.cc71 GPR_ASSERT(grpc_stream_compress(compress_ctx, &source, &relay, nullptr, in test_stream_compression_simple_compress_decompress()
76 GPR_ASSERT(grpc_stream_decompress(decompress_ctx, &relay, &sink, &output_size, in test_stream_compression_simple_compress_decompress()
78 GPR_ASSERT(output_size == sizeof(test_str) - 1); in test_stream_compression_simple_compress_decompress()
82 GPR_ASSERT(slice_buffer_equals_string(&sink, test_str)); in test_stream_compression_simple_compress_decompress()
104 GPR_ASSERT(grpc_stream_compress(compress_ctx, &source, &relay, nullptr, in test_stream_compression_simple_compress_decompress_with_output_size_constraint()
112 GPR_ASSERT(grpc_stream_decompress(decompress_ctx, &relay, &sink, &output_size, in test_stream_compression_simple_compress_decompress_with_output_size_constraint()
114 GPR_ASSERT(output_size == max_output_size); in test_stream_compression_simple_compress_decompress_with_output_size_constraint()
115 GPR_ASSERT(end_of_context == false); in test_stream_compression_simple_compress_decompress_with_output_size_constraint()
118 GPR_ASSERT(GRPC_SLICE_LENGTH(slice_recv) == max_output_size); in test_stream_compression_simple_compress_decompress_with_output_size_constraint()
119 GPR_ASSERT(0 == strncmp(test_str, str_recv, max_output_size)); in test_stream_compression_simple_compress_decompress_with_output_size_constraint()
[all …]
/external/grpc-grpc/test/core/transport/
Dconnectivity_state_test.cc34 GPR_ASSERT(error == GRPC_ERROR_NONE); in must_succeed()
35 GPR_ASSERT(arg == THE_ARG); in must_succeed()
40 GPR_ASSERT(error != GRPC_ERROR_NONE); in must_fail()
41 GPR_ASSERT(arg == THE_ARG); in must_fail()
47 GPR_ASSERT(0 == in test_connectivity_state_name()
49 GPR_ASSERT(0 == strcmp(grpc_connectivity_state_name(GRPC_CHANNEL_CONNECTING), in test_connectivity_state_name()
51 GPR_ASSERT(0 == in test_connectivity_state_name()
53 GPR_ASSERT( in test_connectivity_state_name()
56 GPR_ASSERT(0 == strcmp(grpc_connectivity_state_name(GRPC_CHANNEL_SHUTDOWN), in test_connectivity_state_name()
66 GPR_ASSERT(grpc_connectivity_state_get(&tracker, &error) == in test_check()
[all …]
/external/grpc-grpc/test/core/transport/chttp2/
Dstream_map_test.cc42 GPR_ASSERT(nullptr == grpc_chttp2_stream_map_find(&map, 39128)); in test_empty_find()
53 GPR_ASSERT(0 == grpc_chttp2_stream_map_size(&map)); in test_double_deletion()
55 GPR_ASSERT((void*)1 == grpc_chttp2_stream_map_find(&map, 1)); in test_double_deletion()
56 GPR_ASSERT(1 == grpc_chttp2_stream_map_size(&map)); in test_double_deletion()
57 GPR_ASSERT((void*)1 == grpc_chttp2_stream_map_delete(&map, 1)); in test_double_deletion()
58 GPR_ASSERT(0 == grpc_chttp2_stream_map_size(&map)); in test_double_deletion()
59 GPR_ASSERT(nullptr == grpc_chttp2_stream_map_find(&map, 1)); in test_double_deletion()
60 GPR_ASSERT(nullptr == grpc_chttp2_stream_map_delete(&map, 1)); in test_double_deletion()
61 GPR_ASSERT(nullptr == grpc_chttp2_stream_map_find(&map, 1)); in test_double_deletion()
62 GPR_ASSERT(nullptr == grpc_chttp2_stream_map_delete(&map, 1)); in test_double_deletion()
[all …]
Dhpack_table_test.cc37 GPR_ASSERT(grpc_slice_str_cmp(mdstr, str) == 0); in assert_str()
136 GPR_ASSERT(grpc_chttp2_hptbl_add(&tbl, elem) == GRPC_ERROR_NONE); in test_many_additions()
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(grpc_chttp2_hptbl_add(&tbl, elem) == GRPC_ERROR_NONE); in test_find()
190 GPR_ASSERT(r.index == 2 + GRPC_CHTTP2_LAST_STATIC_ENTRY); in test_find()
191 GPR_ASSERT(r.has_value == 1); in test_find()
194 GPR_ASSERT(r.index == 3 + GRPC_CHTTP2_LAST_STATIC_ENTRY); in test_find()
195 GPR_ASSERT(r.has_value == 1); in test_find()
198 GPR_ASSERT(r.index == 1 + GRPC_CHTTP2_LAST_STATIC_ENTRY); in test_find()
[all …]
/external/grpc-grpc/test/core/tsi/
Dtransport_security_test_lib.cc58 GPR_ASSERT(fixture != nullptr); in handshaker_args_create()
59 GPR_ASSERT(fixture->config != nullptr); in handshaker_args_create()
80 GPR_ASSERT(fixture != nullptr); in setup_handshakers()
81 GPR_ASSERT(fixture->vtable != nullptr); in setup_handshakers()
82 GPR_ASSERT(fixture->vtable->setup_handshakers != nullptr); in setup_handshakers()
95 GPR_ASSERT(tsi_handshaker_result_get_unused_bytes( in check_unused_bytes()
97 GPR_ASSERT(bytes_size == strlen(TSI_TEST_UNUSED_BYTES)); in check_unused_bytes()
98 GPR_ASSERT(memcmp(bytes, TSI_TEST_UNUSED_BYTES, bytes_size) == 0); in check_unused_bytes()
99 GPR_ASSERT(tsi_handshaker_result_get_unused_bytes( in check_unused_bytes()
101 GPR_ASSERT(bytes_size == 0); in check_unused_bytes()
[all …]

12345678910>>...24