Home
last modified time | relevance | path

Searched refs:grpc_slice_from_static_string (Results 1 – 25 of 152) sorted by relevance

1234567

/third_party/grpc/test/core/transport/
Dmetadata_test.cc70 maybe_intern(grpc_slice_from_static_string("a"), intern_keys), in test_create_metadata()
71 maybe_intern(grpc_slice_from_static_string("b"), intern_values)); in test_create_metadata()
73 maybe_intern(grpc_slice_from_static_string("a"), intern_keys), in test_create_metadata()
74 maybe_intern(grpc_slice_from_static_string("b"), intern_values)); in test_create_metadata()
76 maybe_intern(grpc_slice_from_static_string("a"), intern_keys), in test_create_metadata()
77 maybe_intern(grpc_slice_from_static_string("c"), intern_values)); in test_create_metadata()
108 maybe_intern(grpc_slice_from_static_string("a"), intern_keys), in test_create_many_ephemeral_metadata()
130 grpc_slice_intern(grpc_slice_from_static_string("a")), in test_create_many_persistant_metadata()
131 grpc_slice_intern(grpc_slice_from_static_string(buffer))); in test_create_many_persistant_metadata()
137 grpc_slice_intern(grpc_slice_from_static_string("a")), in test_create_many_persistant_metadata()
[all …]
Dbyte_stream_test.cc50 grpc_slice_from_static_string("foo"), in TEST()
51 grpc_slice_from_static_string("bar"), in TEST()
82 grpc_slice_from_static_string("foo"), in TEST()
83 grpc_slice_from_static_string("bar"), in TEST()
126 grpc_slice_from_static_string("foo"), in TEST()
127 grpc_slice_from_static_string("bar"), in TEST()
161 grpc_slice_from_static_string("foo"), in TEST()
162 grpc_slice_from_static_string("bar"), in TEST()
203 grpc_slice_from_static_string("foo"), in TEST()
204 grpc_slice_from_static_string("bar"), in TEST()
Dstatus_metadata_test.cc44 GRPC_MDSTR_GRPC_STATUS, grpc_slice_from_static_string("10")); in TEST()
51 GRPC_MDSTR_GRPC_STATUS, grpc_slice_from_static_string("NaN")); in TEST()
/third_party/grpc/test/core/end2end/tests/
Dtrailing_metadata.cc99 grpc_metadata meta_c[2] = {{grpc_slice_from_static_string("key1"), in test_request_response_with_metadata_and_payload()
100 grpc_slice_from_static_string("val1"), in test_request_response_with_metadata_and_payload()
103 {grpc_slice_from_static_string("key2"), in test_request_response_with_metadata_and_payload()
104 grpc_slice_from_static_string("val2"), in test_request_response_with_metadata_and_payload()
107 grpc_metadata meta_s[2] = {{grpc_slice_from_static_string("key3"), in test_request_response_with_metadata_and_payload()
108 grpc_slice_from_static_string("val3"), in test_request_response_with_metadata_and_payload()
111 {grpc_slice_from_static_string("key4"), in test_request_response_with_metadata_and_payload()
112 grpc_slice_from_static_string("val4"), in test_request_response_with_metadata_and_payload()
115 grpc_metadata meta_t[2] = {{grpc_slice_from_static_string("key5"), in test_request_response_with_metadata_and_payload()
116 grpc_slice_from_static_string("val5"), in test_request_response_with_metadata_and_payload()
[all …]
Dbinary_metadata.cc100 {grpc_slice_from_static_string("key1-bin"), in test_request_response_with_metadata_and_payload()
101 grpc_slice_from_static_string( in test_request_response_with_metadata_and_payload()
105 {grpc_slice_from_static_string("key2-bin"), in test_request_response_with_metadata_and_payload()
106 grpc_slice_from_static_string( in test_request_response_with_metadata_and_payload()
111 {grpc_slice_from_static_string("key3-bin"), in test_request_response_with_metadata_and_payload()
112 grpc_slice_from_static_string( in test_request_response_with_metadata_and_payload()
116 {grpc_slice_from_static_string("key4-bin"), in test_request_response_with_metadata_and_payload()
117 grpc_slice_from_static_string( in test_request_response_with_metadata_and_payload()
140 grpc_slice_from_static_string("/foo"), nullptr, in test_request_response_with_metadata_and_payload()
229 grpc_slice status_string = grpc_slice_from_static_string( in test_request_response_with_metadata_and_payload()
Dsimple_metadata.cc99 grpc_metadata meta_c[2] = {{grpc_slice_from_static_string("key1"), in test_request_response_with_metadata_and_payload()
100 grpc_slice_from_static_string("val1"), in test_request_response_with_metadata_and_payload()
103 {grpc_slice_from_static_string("key2"), in test_request_response_with_metadata_and_payload()
104 grpc_slice_from_static_string("val2"), in test_request_response_with_metadata_and_payload()
107 grpc_metadata meta_s[2] = {{grpc_slice_from_static_string("key3"), in test_request_response_with_metadata_and_payload()
108 grpc_slice_from_static_string("val3"), in test_request_response_with_metadata_and_payload()
111 {grpc_slice_from_static_string("key4"), in test_request_response_with_metadata_and_payload()
112 grpc_slice_from_static_string("val4"), in test_request_response_with_metadata_and_payload()
134 grpc_slice_from_static_string("/foo"), nullptr, in test_request_response_with_metadata_and_payload()
223 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in test_request_response_with_metadata_and_payload()
Dsimple_cacheable_request.cc101 grpc_metadata meta_c[2] = {{grpc_slice_from_static_string("key1"), in test_cacheable_request_response_with_metadata_and_payload()
102 grpc_slice_from_static_string("val1"), in test_cacheable_request_response_with_metadata_and_payload()
105 {grpc_slice_from_static_string("key2"), in test_cacheable_request_response_with_metadata_and_payload()
106 grpc_slice_from_static_string("val2"), in test_cacheable_request_response_with_metadata_and_payload()
109 grpc_metadata meta_s[2] = {{grpc_slice_from_static_string("key3"), in test_cacheable_request_response_with_metadata_and_payload()
110 grpc_slice_from_static_string("val3"), in test_cacheable_request_response_with_metadata_and_payload()
113 {grpc_slice_from_static_string("key4"), in test_cacheable_request_response_with_metadata_and_payload()
114 grpc_slice_from_static_string("val4"), in test_cacheable_request_response_with_metadata_and_payload()
136 grpc_slice_from_static_string("/foo"), nullptr, in test_cacheable_request_response_with_metadata_and_payload()
225 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in test_cacheable_request_response_with_metadata_and_payload()
Dauthority_not_supported.cc93 grpc_metadata meta_c[2] = {{grpc_slice_from_static_string("key1"), in test_with_authority_header()
94 grpc_slice_from_static_string("val1"), in test_with_authority_header()
97 {grpc_slice_from_static_string("key2"), in test_with_authority_header()
98 grpc_slice_from_static_string("val2"), in test_with_authority_header()
113 grpc_slice host = grpc_slice_from_static_string("foo.test.google.fr"); in test_with_authority_header()
116 grpc_slice_from_static_string("/foo"), &host, in test_with_authority_header()
Dhpack_size.cc252 extra_metadata[0].key = grpc_slice_from_static_string("hobbit-first-name"); in simple_request_body()
253 extra_metadata[0].value = grpc_slice_from_static_string( in simple_request_body()
255 extra_metadata[1].key = grpc_slice_from_static_string("hobbit-second-name"); in simple_request_body()
256 extra_metadata[1].value = grpc_slice_from_static_string( in simple_request_body()
258 extra_metadata[2].key = grpc_slice_from_static_string("dragon"); in simple_request_body()
260 grpc_slice_from_static_string(dragons[index % GPR_ARRAY_SIZE(dragons)]); in simple_request_body()
264 grpc_slice_from_static_string("/foo"), nullptr, in simple_request_body()
318 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in simple_request_body()
Dload_reporting_hook.cc117 grpc_slice request_payload_slice = grpc_slice_from_static_string(request_msg); in request_response_with_payload()
119 grpc_slice_from_static_string(response_msg); in request_response_with_payload()
142 grpc_slice_from_static_string(method_name), in request_response_with_payload()
233 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in request_response_with_payload()
289 initial_lr_metadata.value = grpc_slice_from_static_string("client-token"); in test_load_reporting_hook()
294 trailing_lr_metadata.value = grpc_slice_from_static_string("server-token"); in test_load_reporting_hook()
Dretry_streaming_after_commit.cc107 grpc_slice request_payload_slice = grpc_slice_from_static_string("foo"); in test_retry_streaming_after_commit()
108 grpc_slice request2_payload_slice = grpc_slice_from_static_string("bar"); in test_retry_streaming_after_commit()
109 grpc_slice response_payload_slice = grpc_slice_from_static_string("baz"); in test_retry_streaming_after_commit()
110 grpc_slice response2_payload_slice = grpc_slice_from_static_string("quux"); in test_retry_streaming_after_commit()
155 grpc_slice_from_static_string("/service/method"), in test_retry_streaming_after_commit()
168 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in test_retry_streaming_after_commit()
Dretry_server_pushback_disabled.cc110 grpc_slice request_payload_slice = grpc_slice_from_static_string("foo"); in test_retry_server_pushback_disabled()
111 grpc_slice response_payload_slice = grpc_slice_from_static_string("bar"); in test_retry_server_pushback_disabled()
127 pushback_md.value = grpc_slice_from_static_string("-1"); in test_retry_server_pushback_disabled()
155 grpc_slice_from_static_string("/service/method"), in test_retry_server_pushback_disabled()
168 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in test_retry_server_pushback_disabled()
Dretry_server_pushback_delay.cc109 grpc_slice request_payload_slice = grpc_slice_from_static_string("foo"); in test_retry_server_pushback_delay()
110 grpc_slice response_payload_slice = grpc_slice_from_static_string("bar"); in test_retry_server_pushback_delay()
126 pushback_md.value = grpc_slice_from_static_string("2000"); in test_retry_server_pushback_delay()
154 grpc_slice_from_static_string("/service/method"), in test_retry_server_pushback_delay()
167 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in test_retry_server_pushback_delay()
Dretry_exceeds_buffer_size_in_initial_batch.cc112 grpc_slice request_payload_slice = grpc_slice_from_static_string("foo"); in test_retry_exceeds_buffer_size_in_initial_batch()
113 grpc_slice response_payload_slice = grpc_slice_from_static_string("bar"); in test_retry_exceeds_buffer_size_in_initial_batch()
156 grpc_slice_from_static_string("/service/method"), in test_retry_exceeds_buffer_size_in_initial_batch()
169 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in test_retry_exceeds_buffer_size_in_initial_batch()
Dretry_disabled.cc110 grpc_slice request_payload_slice = grpc_slice_from_static_string("foo"); in test_retry_disabled()
111 grpc_slice response_payload_slice = grpc_slice_from_static_string("bar"); in test_retry_disabled()
153 grpc_slice_from_static_string("/service/method"), in test_retry_disabled()
166 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in test_retry_disabled()
/third_party/grpc/test/core/iomgr/
Derror_test.cc69 grpc_slice_from_static_string("longer message")); in test_set_get_str()
81 grpc_slice_from_static_string("message")); in test_copy_and_unref()
91 error1, GRPC_ERROR_STR_SYSCALL, grpc_slice_from_static_string("syscall")); in test_copy_and_unref()
110 GRPC_ERROR_STR_GRPC_MESSAGE, grpc_slice_from_static_string("message")); in test_create_referencing()
123 GRPC_ERROR_STR_GRPC_MESSAGE, grpc_slice_from_static_string("message")); in test_create_referencing_many()
129 GRPC_ERROR_STR_GRPC_MESSAGE, grpc_slice_from_static_string("message 3")); in test_create_referencing_many()
147 grpc_slice_from_static_string("message")); in print_error_string()
158 grpc_slice_from_static_string("message for child 1")); in print_error_string_reference()
163 grpc_slice_from_static_string("message for child 2")); in print_error_string_reference()
201 grpc_slice_from_static_string("message for child 2")); in test_overflow()
/third_party/grpc/test/core/channel/
Dchannel_trace_test.cc86 grpc_slice_from_static_string("simple trace")); in AddSimpleTrace()
134 grpc_slice_from_static_string("trace three")); in TEST()
136 grpc_slice_from_static_string("trace four error")); in TEST()
162 grpc_slice_from_static_string("subchannel one created"), sc1); in TEST()
180 grpc_slice_from_static_string("LB channel two created"), sc2); in TEST()
183 grpc_slice_from_static_string("subchannel one inactive"), sc1); in TEST()
210 grpc_slice_from_static_string("subchannel one created"), sc1); in TEST()
220 grpc_slice_from_static_string("connection one created"), conn1); in TEST()
232 grpc_slice_from_static_string("subchannel two created"), sc2); in TEST()
237 grpc_slice_from_static_string("subchannel one inactive"), sc1); in TEST()
[all …]
/third_party/grpc/test/cpp/microbenchmarks/
Dbm_chttp2_hpack.cc191 grpc_slice_intern(grpc_slice_from_static_string("abc")), in GetElems()
192 grpc_slice_intern(grpc_slice_from_static_string("def")))}; in GetElems()
203 grpc_slice_intern(grpc_slice_from_static_string("abc-bin")), in GetElems()
225 grpc_slice_intern(grpc_slice_from_static_string("abc")), in GetElems()
226 grpc_slice_from_static_string("def"))}; in GetElems()
234 return {grpc_mdelem_from_slices(grpc_slice_from_static_string("abc"), in GetElems()
235 grpc_slice_from_static_string("def"))}; in GetElems()
244 return {grpc_mdelem_from_slices(grpc_slice_from_static_string("abc-bin"), in GetElems()
268 grpc_slice_intern(grpc_slice_from_static_string("/foo/bar"))), in GetElems()
270 grpc_slice_intern(grpc_slice_from_static_string( in GetElems()
[all …]
/third_party/grpc/test/core/transport/chttp2/
Dhpack_table_test.cc172 elem = grpc_mdelem_from_slices(grpc_slice_from_static_string("abc"), in test_find()
173 grpc_slice_from_static_string("xyz")); in test_find()
176 elem = grpc_mdelem_from_slices(grpc_slice_from_static_string("abc"), in test_find()
177 grpc_slice_from_static_string("123")); in test_find()
180 elem = grpc_mdelem_from_slices(grpc_slice_from_static_string("x"), in test_find()
181 grpc_slice_from_static_string("1")); in test_find()
232 elem = grpc_mdelem_from_slices(grpc_slice_from_static_string("test"), in test_find()
Dhpack_encoder_test.cc175 grpc_slice value_slice = grpc_slice_from_static_string(value); in verify()
180 grpc_slice_intern(grpc_slice_from_static_string(key)), value_slice); in verify()
259 grpc_slice_intern(grpc_slice_from_static_string(key)), in verify_continuation_headers()
260 grpc_slice_intern(grpc_slice_from_static_string(value))); in verify_continuation_headers()
346 grpc_slice_intern(grpc_slice_from_static_string(key)), in verify_table_size_change_match_elem_size()
347 grpc_slice_intern(grpc_slice_from_static_string(value))); in verify_table_size_change_match_elem_size()
/third_party/grpc/test/core/compression/
Dstream_compression_test.cc70 grpc_slice slice = grpc_slice_from_static_string(test_str); in test_stream_compression_simple_compress_decompress()
103 grpc_slice slice = grpc_slice_from_static_string(test_str); in test_stream_compression_simple_compress_decompress_with_output_size_constraint()
153 grpc_slice slice = grpc_slice_from_static_string(test_str); in test_stream_compression_simple_compress_decompress_with_large_data()
184 grpc_slice slice = grpc_slice_from_static_string(test_str); in test_stream_compression_drop_context()
193 slice = grpc_slice_from_static_string(test_str2); in test_stream_compression_drop_context()
253 grpc_slice slice = grpc_slice_from_static_string(test_str); in test_stream_compression_sync_flush()
272 slice = grpc_slice_from_static_string(test_str2); in test_stream_compression_sync_flush()
/third_party/grpc/src/objective-c/tests/CronetTests/
DCronetUnitTests.mm123 grpc_metadata meta_c[2] = {{grpc_slice_from_static_string("key1"),
124 grpc_slice_from_static_string("val1"),
127 {grpc_slice_from_static_string("key2"),
128 grpc_slice_from_static_string("val2"),
151 grpc_slice_from_static_string("/foo"), NULL, deadline, NULL);
253 grpc_metadata meta_c[2] = {{grpc_slice_from_static_string("key1"),
254 grpc_slice_from_static_string("val1"),
257 {grpc_slice_from_static_string("key2"),
258 grpc_slice_from_static_string("val2"),
281 grpc_slice_from_static_string("/foo"), NULL, deadline, NULL);
/third_party/grpc/test/core/end2end/
Dinvalid_call_argument_test.cc72 grpc_slice host = grpc_slice_from_static_string("nonexistant"); in prepare_test()
75 grpc_slice_from_static_string("/Foo"), &host, g_state.deadline, in prepare_test()
87 grpc_slice host = grpc_slice_from_static_string("bar"); in prepare_test()
90 grpc_slice_from_static_string("/Foo"), &host, g_state.deadline, in prepare_test()
289 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in test_send_server_status_from_client()
480 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in test_send_status_from_server_with_invalid_flags()
503 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in test_too_many_trailing_metadata()
525 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in test_send_server_status_twice()
591 metadata.key = grpc_slice_from_static_string(":start_with_colon"); in test_invalid_initial_metadata_reserved_key()
592 metadata.value = grpc_slice_from_static_string("value"); in test_invalid_initial_metadata_reserved_key()
/third_party/grpc/test/core/fling/
Dclient.cc79 grpc_slice host = grpc_slice_from_static_string("localhost"); in step_ping_pong_request()
82 grpc_slice_from_static_string("/Reflector/reflectUnary"), &host, in step_ping_pong_request()
97 grpc_slice host = grpc_slice_from_static_string("localhost"); in init_ping_pong_stream()
100 grpc_slice_from_static_string("/Reflector/reflectStream"), &host, in init_ping_pong_stream()
/third_party/grpc/src/core/lib/security/credentials/iam/
Diam_credentials.cc56 grpc_slice_from_static_string(GRPC_IAM_AUTHORIZATION_TOKEN_METADATA_KEY), in grpc_google_iam_credentials()
61 grpc_slice_from_static_string(GRPC_IAM_AUTHORITY_SELECTOR_METADATA_KEY), in grpc_google_iam_credentials()

1234567