Home
last modified time | relevance | path

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

123456

/external/grpc-grpc/test/core/transport/
Dmetadata_test.cc67 maybe_intern(grpc_slice_from_static_string("a"), intern_keys), in test_create_metadata()
68 maybe_intern(grpc_slice_from_static_string("b"), intern_values)); in test_create_metadata()
70 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("c"), intern_values)); in test_create_metadata()
105 maybe_intern(grpc_slice_from_static_string("a"), intern_keys), in test_create_many_ephemeral_metadata()
127 grpc_slice_intern(grpc_slice_from_static_string("a")), in test_create_many_persistant_metadata()
128 grpc_slice_intern(grpc_slice_from_static_string(buffer))); in test_create_many_persistant_metadata()
134 grpc_slice_intern(grpc_slice_from_static_string("a")), in test_create_many_persistant_metadata()
[all …]
Dbyte_stream_test.cc48 grpc_slice_from_static_string("foo"), in TEST()
49 grpc_slice_from_static_string("bar"), in TEST()
80 grpc_slice_from_static_string("foo"), in TEST()
81 grpc_slice_from_static_string("bar"), in TEST()
124 grpc_slice_from_static_string("foo"), in TEST()
125 grpc_slice_from_static_string("bar"), in TEST()
159 grpc_slice_from_static_string("foo"), in TEST()
160 grpc_slice_from_static_string("bar"), in TEST()
201 grpc_slice_from_static_string("foo"), in TEST()
202 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()
/external/grpc-grpc/test/cpp/microbenchmarks/
Dbm_metadata.cc35 benchmark::DoNotOptimize(grpc_slice_from_static_string("abc")); in BM_SliceFromStatic()
52 gpr_slice slice = grpc_slice_from_static_string("abc"); in BM_SliceIntern()
62 gpr_slice slice = grpc_slice_intern(grpc_slice_from_static_string("abc")); in BM_SliceReIntern()
82 gpr_slice slice = grpc_slice_from_static_string("gzip"); in BM_SliceInternEqualToStaticMetadata()
92 gpr_slice k = grpc_slice_from_static_string("key"); in BM_MetadataFromNonInternedSlices()
93 gpr_slice v = grpc_slice_from_static_string("value"); in BM_MetadataFromNonInternedSlices()
105 gpr_slice k = grpc_slice_intern(grpc_slice_from_static_string("key")); in BM_MetadataFromInternedSlices()
106 gpr_slice v = grpc_slice_intern(grpc_slice_from_static_string("value")); in BM_MetadataFromInternedSlices()
121 gpr_slice k = grpc_slice_intern(grpc_slice_from_static_string("key")); in BM_MetadataFromInternedSlicesAlreadyInIndex()
122 gpr_slice v = grpc_slice_intern(grpc_slice_from_static_string("value")); in BM_MetadataFromInternedSlicesAlreadyInIndex()
[all …]
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 …]
/external/grpc-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 …]
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()
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()
Dhpack_size.cc249 extra_metadata[0].key = grpc_slice_from_static_string("hobbit-first-name"); in simple_request_body()
250 extra_metadata[0].value = grpc_slice_from_static_string( in simple_request_body()
252 extra_metadata[1].key = grpc_slice_from_static_string("hobbit-second-name"); in simple_request_body()
253 extra_metadata[1].value = grpc_slice_from_static_string( in simple_request_body()
255 extra_metadata[2].key = grpc_slice_from_static_string("dragon"); in simple_request_body()
257 grpc_slice_from_static_string(dragons[index % GPR_ARRAY_SIZE(dragons)]); in simple_request_body()
261 grpc_slice_from_static_string("/foo"), nullptr, in simple_request_body()
315 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in simple_request_body()
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()
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()
/external/grpc-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()
/external/grpc-grpc/test/core/channel/
Dchannel_trace_test.cc93 grpc_slice_from_static_string("simple trace")); in AddSimpleTrace()
145 grpc_slice_from_static_string("trace three")); in TEST_P()
147 grpc_slice_from_static_string("trace four error")); in TEST_P()
173 grpc_slice_from_static_string("subchannel one created"), sc1); in TEST_P()
191 grpc_slice_from_static_string("LB channel two created"), sc2); in TEST_P()
194 grpc_slice_from_static_string("subchannel one inactive"), sc1); in TEST_P()
221 grpc_slice_from_static_string("subchannel one created"), sc1); in TEST_P()
231 grpc_slice_from_static_string("connection one created"), conn1); in TEST_P()
243 grpc_slice_from_static_string("subchannel two created"), sc2); in TEST_P()
248 grpc_slice_from_static_string("subchannel one inactive"), sc1); in TEST_P()
/external/grpc-grpc/test/core/memory_usage/
Dclient.cc75 grpc_slice hostname = grpc_slice_from_static_string("localhost"); in init_ping_pong_request()
78 grpc_slice_from_static_string("/Reflector/reflectUnary"), &hostname, in init_ping_pong_request()
142 grpc_slice hostname = grpc_slice_from_static_string("localhost"); in send_snapshot_request()
226 0, grpc_slice_from_static_string("Reflector/GetBeforeSvrCreation")); in main()
228 0, grpc_slice_from_static_string("Reflector/GetAfterSvrCreation")); in main()
233 0, grpc_slice_from_static_string("Reflector/SimpleSnapshot")); in main()
242 0, grpc_slice_from_static_string("Reflector/SimpleSnapshot")); in main()
256 0, grpc_slice_from_static_string("Reflector/DestroyCalls")); in main()
273 0, grpc_slice_from_static_string("Reflector/SimpleSnapshot")); in main()
/external/grpc-grpc/test/core/transport/chttp2/
Dhpack_table_test.cc176 elem = grpc_mdelem_from_slices(grpc_slice_from_static_string("abc"), in test_find()
177 grpc_slice_from_static_string("xyz")); in test_find()
180 elem = grpc_mdelem_from_slices(grpc_slice_from_static_string("abc"), in test_find()
181 grpc_slice_from_static_string("123")); in test_find()
184 elem = grpc_mdelem_from_slices(grpc_slice_from_static_string("x"), in test_find()
185 grpc_slice_from_static_string("1")); in test_find()
236 elem = grpc_mdelem_from_slices(grpc_slice_from_static_string("test"), in test_find()
Dhpack_encoder_test.cc75 grpc_slice value_slice = grpc_slice_from_static_string(value); in verify()
80 grpc_slice_intern(grpc_slice_from_static_string(key)), value_slice); in verify()
203 grpc_slice_intern(grpc_slice_from_static_string(key)), in verify_table_size_change_match_elem_size()
204 grpc_slice_intern(grpc_slice_from_static_string(value))); in verify_table_size_change_match_elem_size()
/external/grpc-grpc/test/core/compression/
Dstream_compression_test.cc69 grpc_slice slice = grpc_slice_from_static_string(test_str); in test_stream_compression_simple_compress_decompress()
102 grpc_slice slice = grpc_slice_from_static_string(test_str); in test_stream_compression_simple_compress_decompress_with_output_size_constraint()
152 grpc_slice slice = grpc_slice_from_static_string(test_str); in test_stream_compression_simple_compress_decompress_with_large_data()
183 grpc_slice slice = grpc_slice_from_static_string(test_str); in test_stream_compression_drop_context()
192 slice = grpc_slice_from_static_string(test_str2); in test_stream_compression_drop_context()
252 grpc_slice slice = grpc_slice_from_static_string(test_str); in test_stream_compression_sync_flush()
271 slice = grpc_slice_from_static_string(test_str2); in test_stream_compression_sync_flush()
/external/grpc-grpc/src/objective-c/tests/CronetUnitTests/
DCronetUnitTests.m140 grpc_metadata meta_c[2] = {{grpc_slice_from_static_string("key1"),
141 grpc_slice_from_static_string("val1"),
144 {grpc_slice_from_static_string("key2"),
145 grpc_slice_from_static_string("val2"),
171 grpc_slice_from_static_string("/foo"), NULL, deadline, NULL);
274 grpc_metadata meta_c[2] = {{grpc_slice_from_static_string("key1"),
275 grpc_slice_from_static_string("val1"),
278 {grpc_slice_from_static_string("key2"),
279 grpc_slice_from_static_string("val2"),
303 grpc_slice_from_static_string("/foo"), NULL, deadline, NULL);
/external/grpc-grpc/test/core/security/
Dssl_server_fuzzer.cc73 ca_slice = grpc_slice_from_static_string(test_root_cert); in LLVMFuzzerTestOneInput()
74 cert_slice = grpc_slice_from_static_string(test_server1_cert); in LLVMFuzzerTestOneInput()
75 key_slice = grpc_slice_from_static_string(test_server1_key); in LLVMFuzzerTestOneInput()
/external/grpc-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()
88 grpc_slice host = grpc_slice_from_static_string("bar"); in prepare_test()
91 grpc_slice_from_static_string("/Foo"), &host, g_state.deadline, in prepare_test()
290 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in test_send_server_status_from_client()
481 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in test_send_status_from_server_with_invalid_flags()
504 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in test_too_many_trailing_metadata()
526 grpc_slice status_details = grpc_slice_from_static_string("xyz"); in test_send_server_status_twice()
592 metadata.key = grpc_slice_from_static_string(":start_with_colon"); in test_invalid_initial_metadata_reserved_key()
593 metadata.value = grpc_slice_from_static_string("value"); in test_invalid_initial_metadata_reserved_key()
/external/grpc-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()

123456