Searched refs:encoded_slice (Results 1 – 5 of 5) sorted by relevance
/external/grpc-grpc/test/core/tsi/alts/handshaker/ |
D | transport_security_common_api_test.cc | 70 grpc_slice encoded_slice; in test_success() local 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() 79 grpc_gcp_rpc_protocol_versions_decode(encoded_slice, &decoded_version)); in test_success() 81 grpc_slice_unref(encoded_slice); in test_success() 87 grpc_slice encoded_slice; in test_failure() local 107 GPR_ASSERT(!grpc_gcp_rpc_protocol_versions_encode(nullptr, &encoded_slice)); in test_failure() 109 GPR_ASSERT(!grpc_gcp_rpc_protocol_versions_decode(encoded_slice, nullptr)); in test_failure() 111 GPR_ASSERT(grpc_gcp_rpc_protocol_versions_encode(&version, &encoded_slice)); in test_failure() [all …]
|
/external/grpc-grpc/test/core/slice/ |
D | percent_encoding_test.cc | 47 grpc_slice encoded_slice = in test_vector() local 51 GPR_ASSERT(grpc_strict_percent_decode_slice(encoded_slice, dict, in test_vector() 54 grpc_permissive_percent_decode_slice(encoded_slice); in test_vector() 72 GPR_ASSERT(grpc_slice_eq(encoded_slice, raw2encoded_slice)); in test_vector() 78 grpc_slice_unref(encoded_slice); in test_vector() 98 grpc_slice encoded_slice = in test_nonconformant_vector() local 101 GPR_ASSERT(!grpc_strict_percent_decode_slice(encoded_slice, dict, in test_nonconformant_vector() 104 grpc_permissive_percent_decode_slice(encoded_slice); in test_nonconformant_vector() 117 grpc_slice_unref(encoded_slice); in test_nonconformant_vector()
|
/external/grpc-grpc/test/cpp/grpclb/ |
D | grpclb_api_test.cc | 77 grpc_slice encoded_slice = in TEST_F() local 81 grpc_grpclb_initial_response_parse(encoded_slice); in TEST_F() 85 grpc_slice_unref(encoded_slice); in TEST_F() 104 const grpc_slice encoded_slice = grpc_slice_from_copied_buffer( in TEST_F() local 107 grpc_grpclb_response_parse_serverlist(encoded_slice); in TEST_F() 122 grpc_slice_unref(encoded_slice); in TEST_F()
|
/external/v8/src/strings/ |
D | string-builder.cc | 23 int encoded_slice = Smi::ToInt(element); in StringBuilderConcatHelper() local 26 if (encoded_slice > 0) { in StringBuilderConcatHelper() 28 pos = StringBuilderSubstringPosition::decode(encoded_slice); in StringBuilderConcatHelper() 29 len = StringBuilderSubstringLength::decode(encoded_slice); in StringBuilderConcatHelper() 35 len = -encoded_slice; in StringBuilderConcatHelper()
|
D | string-builder-inl.h | 76 int encoded_slice = StringBuilderSubstringLength::encode(length) | in AddSubjectSlice() local 78 builder->Add(Smi::FromInt(encoded_slice)); in AddSubjectSlice()
|