Home
last modified time | relevance | path

Searched refs:grpc_slice_eq (Results 1 – 25 of 37) sorted by relevance

12

/external/grpc-grpc/src/core/lib/compression/
Dcompression_internal.cc36 if (grpc_slice_eq(str, GRPC_MDSTR_IDENTITY)) in grpc_message_compression_algorithm_from_slice()
38 if (grpc_slice_eq(str, GRPC_MDSTR_DEFLATE)) in grpc_message_compression_algorithm_from_slice()
40 if (grpc_slice_eq(str, GRPC_MDSTR_GZIP)) return GRPC_MESSAGE_COMPRESS_GZIP; in grpc_message_compression_algorithm_from_slice()
46 if (grpc_slice_eq(str, GRPC_MDSTR_IDENTITY)) return GRPC_STREAM_COMPRESS_NONE; in grpc_stream_compression_algorithm_from_slice()
47 if (grpc_slice_eq(str, GRPC_MDSTR_GZIP)) return GRPC_STREAM_COMPRESS_GZIP; in grpc_stream_compression_algorithm_from_slice()
247 if (grpc_slice_eq(value, GRPC_MDSTR_IDENTITY)) { in grpc_message_compression_algorithm_parse()
250 } else if (grpc_slice_eq(value, GRPC_MDSTR_DEFLATE)) { in grpc_message_compression_algorithm_parse()
253 } else if (grpc_slice_eq(value, GRPC_MDSTR_GZIP)) { in grpc_message_compression_algorithm_parse()
266 if (grpc_slice_eq(value, GRPC_MDSTR_IDENTITY)) { in grpc_stream_compression_algorithm_parse()
269 } else if (grpc_slice_eq(value, GRPC_MDSTR_GZIP)) { in grpc_stream_compression_algorithm_parse()
Dcompression.cc45 if (grpc_slice_eq(name, GRPC_MDSTR_IDENTITY)) { in grpc_compression_algorithm_parse()
48 } else if (grpc_slice_eq(name, GRPC_MDSTR_DEFLATE)) { in grpc_compression_algorithm_parse()
51 } else if (grpc_slice_eq(name, GRPC_MDSTR_GZIP)) { in grpc_compression_algorithm_parse()
54 } else if (grpc_slice_eq(name, GRPC_MDSTR_STREAM_SLASH_GZIP)) { in grpc_compression_algorithm_parse()
151 if (grpc_slice_eq(str, GRPC_MDSTR_IDENTITY)) return GRPC_COMPRESS_NONE; in grpc_compression_algorithm_from_slice()
152 if (grpc_slice_eq(str, GRPC_MDSTR_DEFLATE)) return GRPC_COMPRESS_DEFLATE; in grpc_compression_algorithm_from_slice()
153 if (grpc_slice_eq(str, GRPC_MDSTR_GZIP)) return GRPC_COMPRESS_GZIP; in grpc_compression_algorithm_from_slice()
154 if (grpc_slice_eq(str, GRPC_MDSTR_STREAM_SLASH_GZIP)) in grpc_compression_algorithm_from_slice()
Dstream_compression.cc68 if (grpc_slice_eq(value, GRPC_MDSTR_IDENTITY)) { in grpc_stream_compression_method_parse()
72 } else if (grpc_slice_eq(value, GRPC_MDSTR_GZIP)) { in grpc_stream_compression_method_parse()
/external/grpc-grpc/test/core/compression/
Dalgorithm_test.cc51 GPR_ASSERT(grpc_slice_eq(mdstr, grpc_compression_algorithm_slice(parsed))); in test_algorithm_mesh()
62 GPR_ASSERT(grpc_slice_eq(GRPC_MDKEY(mdelem), GRPC_MDSTR_GRPC_ENCODING)); in test_algorithm_mesh()
71 grpc_slice_eq(GRPC_MDKEY(mdelem), GRPC_MDSTR_CONTENT_ENCODING)); in test_algorithm_mesh()
97 GPR_ASSERT(grpc_slice_eq( in test_algorithm_failure()
100 GPR_ASSERT(grpc_slice_eq( in test_algorithm_failure()
/external/grpc-grpc/test/core/transport/
Dbyte_stream_test.cc67 EXPECT_TRUE(grpc_slice_eq(input[i], output)); in TEST()
98 EXPECT_TRUE(grpc_slice_eq(input[0], output)); in TEST()
145 EXPECT_TRUE(grpc_slice_eq(input[i], output)); in TEST()
178 EXPECT_TRUE(grpc_slice_eq(input[0], output)); in TEST()
187 EXPECT_TRUE(grpc_slice_eq(input[i], output)); in TEST()
221 EXPECT_TRUE(grpc_slice_eq(input[0], output)); in TEST()
228 EXPECT_TRUE(grpc_slice_eq(input[i], output)); in TEST()
235 EXPECT_TRUE(grpc_slice_eq(input[1], output)); in TEST()
Dmetadata_test.cc77 GPR_ASSERT(grpc_slice_eq(GRPC_MDKEY(m3), GRPC_MDKEY(m1))); in test_create_metadata()
78 GPR_ASSERT(!grpc_slice_eq(GRPC_MDVALUE(m3), GRPC_MDVALUE(m1))); in test_create_metadata()
/external/grpc-grpc/test/core/slice/
Dpercent_encoding_test.cc70 GPR_ASSERT(grpc_slice_eq(raw_slice, encoded2raw_slice)); in test_vector()
71 GPR_ASSERT(grpc_slice_eq(raw_slice, encoded2raw_permissive_slice)); in test_vector()
72 GPR_ASSERT(grpc_slice_eq(encoded_slice, raw2encoded_slice)); in test_vector()
113 grpc_slice_eq(permissive_unencoded_slice, encoded2raw_permissive_slice)); in test_nonconformant_vector()
Dpercent_encode_fuzzer.cc46 GPR_ASSERT(grpc_slice_eq(input, decoded_output)); in test()
47 GPR_ASSERT(grpc_slice_eq(input, permissive_decoded_output)); in test()
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dhpack_table.cc352 if (!grpc_slice_eq(GRPC_MDKEY(md), GRPC_MDKEY(ent))) continue; in grpc_chttp2_hptbl_find()
354 r.has_value = grpc_slice_eq(GRPC_MDVALUE(md), GRPC_MDVALUE(ent)); in grpc_chttp2_hptbl_find()
363 if (!grpc_slice_eq(GRPC_MDKEY(md), GRPC_MDKEY(ent))) continue; in grpc_chttp2_hptbl_find()
365 r.has_value = grpc_slice_eq(GRPC_MDVALUE(md), GRPC_MDVALUE(ent)); in grpc_chttp2_hptbl_find()
Dincoming_metadata.cc56 if (grpc_slice_eq(GRPC_MDKEY(l->md), GRPC_MDKEY(elem))) { in grpc_chttp2_incoming_metadata_buffer_replace_or_add()
Dhpack_encoder.cc230 if (grpc_slice_eq(c->entries_keys[HASH_FRAGMENT_2(key_hash)], in add_key_with_index()
233 } else if (grpc_slice_eq(c->entries_keys[HASH_FRAGMENT_3(key_hash)], in add_key_with_index()
541 if (grpc_slice_eq(c->entries_keys[HASH_FRAGMENT_2(key_hash)], in hpack_enc()
551 if (grpc_slice_eq(c->entries_keys[HASH_FRAGMENT_3(key_hash)], in hpack_enc()
/external/grpc-grpc/src/core/ext/filters/load_reporting/
Dserver_load_reporting_filter.cc216 if (grpc_slice_eq(GRPC_MDKEY(md), GRPC_MDSTR_PATH)) { in RecvInitialMetadataFilter()
219 grpc_slice_eq(GRPC_MDKEY(md), GRPC_MDSTR_AUTHORITY)) { in RecvInitialMetadataFilter()
228 } else if (grpc_slice_eq(GRPC_MDKEY(md), GRPC_MDSTR_LB_TOKEN)) { in RecvInitialMetadataFilter()
285 if (grpc_slice_eq(GRPC_MDKEY(md), GRPC_MDSTR_LB_COST_BIN)) { in SendTrailingMetadataFilter()
/external/grpc-grpc/test/core/transport/chttp2/
Dbin_encoder_test.cc36 if (!grpc_slice_eq(slice, expected)) { in expect_slice_eq()
73 if (!grpc_slice_eq(expect, got)) { in expect_combined_equiv()
Dvarint_test.cc38 GPR_ASSERT(grpc_slice_eq(expect, slice)); in test_varint()
Dbin_decoder_test.cc36 if (!grpc_slice_eq(slice, expected)) { in expect_slice_eq()
/external/grpc-grpc/src/core/lib/transport/
Dmetadata.cc289 if (grpc_slice_eq(key, md->key) && grpc_slice_eq(value, md->value)) { in grpc_mdelem_create()
519 return grpc_slice_eq(GRPC_MDKEY(a), GRPC_MDKEY(b)) && in grpc_mdelem_eq()
520 grpc_slice_eq(GRPC_MDVALUE(a), GRPC_MDVALUE(b)); in grpc_mdelem_eq()
/external/grpc-grpc/test/core/end2end/tests/
Dretry.cc198 GPR_ASSERT(!grpc_slice_eq(request_metadata_recv.metadata[i].key, in test_retry()
246 if (grpc_slice_eq(request_metadata_recv.metadata[i].key, in test_retry()
249 grpc_slice_eq(request_metadata_recv.metadata[i].value, GRPC_MDSTR_1)); in test_retry()
/external/grpc-grpc/src/core/lib/slice/
Dslice_intern.cc190 grpc_slice_eq(grpc_static_slice_table[ent.idx], slice)) { in grpc_slice_maybe_static_intern()
215 grpc_slice_eq(grpc_static_slice_table[ent.idx], slice)) { in grpc_slice_intern()
228 if (s->hash == hash && grpc_slice_eq(slice, materialize(s))) { in grpc_slice_intern()
Dslice_weak_hash_table.h60 return grpc_slice_eq(entry.key(), key) ? entry.value() : nullptr; in Get()
Dslice.cc418 int grpc_slice_eq(grpc_slice a, grpc_slice b) { in grpc_slice_eq() function
441 return grpc_slice_eq(a, b); in grpc_slice_is_equivalent()
475 return grpc_slice_eq(haystack, needle) ? 0 : -1; in grpc_slice_slice()
/external/grpc-grpc/src/core/lib/security/transport/
Dserver_auth_filter.cc89 if (grpc_slice_eq(GRPC_MDKEY(md), consumed_md->key) && in remove_consumed_md()
90 grpc_slice_eq(GRPC_MDVALUE(md), consumed_md->value)) in remove_consumed_md()
/external/grpc-grpc/test/core/end2end/
Dcq_verifier.cc97 if (grpc_slice_eq(md[i].key, key) && grpc_slice_eq(md[i].value, value)) { in has_metadata_slices()
/external/grpc-grpc/include/grpc/
Dslice.h135 GPRAPI int grpc_slice_eq(grpc_slice a, grpc_slice b);
/external/grpc-grpc/test/cpp/microbenchmarks/
Dbm_chttp2_hpack.cc786 if (grpc_slice_eq(GRPC_MDKEY(md), GRPC_MDSTR_GRPC_STATUS) && in OnInitialHeader()
790 if (grpc_slice_eq(GRPC_MDKEY(md), GRPC_MDSTR_GRPC_TIMEOUT)) { in OnInitialHeader()
830 if (grpc_slice_eq(GRPC_MDKEY(md), GRPC_MDSTR_GRPC_TIMEOUT)) { in OnHeaderTimeout()
/external/grpc-grpc/src/core/ext/transport/cronet/transport/
Dcronet_transport.cc743 if (grpc_slice_eq(GRPC_MDKEY(mdelem), GRPC_MDSTR_SCHEME) || in convert_metadata_to_cronet_headers()
744 grpc_slice_eq(GRPC_MDKEY(mdelem), GRPC_MDSTR_AUTHORITY)) { in convert_metadata_to_cronet_headers()
750 if (grpc_slice_eq(GRPC_MDKEY(mdelem), GRPC_MDSTR_METHOD)) { in convert_metadata_to_cronet_headers()
751 if (grpc_slice_eq(GRPC_MDVALUE(mdelem), GRPC_MDSTR_PUT)) { in convert_metadata_to_cronet_headers()
761 if (grpc_slice_eq(GRPC_MDKEY(mdelem), GRPC_MDSTR_PATH)) { in convert_metadata_to_cronet_headers()
793 if (grpc_slice_eq(GRPC_MDKEY(head->md), GRPC_MDSTR_AUTHORITY)) { in header_has_authority()

12