end2end_test_utils.cc
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2015 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #include <string.h>
20 
21 #include <grpc/support/log.h>
22 
24 
25 const char* get_host_override_string(const char* str,
28  return str;
29  } else {
30  return nullptr;
31  }
32 }
33 
36  const char* r = get_host_override_string(str, config);
37  if (r != nullptr) {
38  static grpc_slice ret;
40  return &ret;
41  }
42  return nullptr;
43 }
44 
49  }
50 }
xds_interop_client.str
str
Definition: xds_interop_client.py:487
FEATURE_MASK_SUPPORTS_AUTHORITY_HEADER
#define FEATURE_MASK_SUPPORTS_AUTHORITY_HEADER
Definition: end2end_tests.h:38
log.h
check_tracer_sanity.pattern
pattern
Definition: check_tracer_sanity.py:25
string.h
grpc_end2end_test_config
Definition: end2end_tests.h:53
GPR_ASSERT
#define GPR_ASSERT(x)
Definition: include/grpc/impl/codegen/log.h:94
grpc_slice_from_static_string
GPRAPI grpc_slice grpc_slice_from_static_string(const char *source)
Definition: slice/slice.cc:89
grpc_slice
Definition: include/grpc/impl/codegen/slice.h:65
end2end_tests.h
ret
UniquePtr< SSL_SESSION > ret
Definition: ssl_x509.cc:1029
fix_build_deps.r
r
Definition: fix_build_deps.py:491
get_host_override_string
const char * get_host_override_string(const char *str, grpc_end2end_test_config config)
Definition: end2end_test_utils.cc:25
config_s
Definition: bloaty/third_party/zlib/deflate.c:120
get_host_override_slice
const grpc_slice * get_host_override_slice(const char *str, grpc_end2end_test_config config)
Definition: end2end_test_utils.cc:34
validate_host_override_string
void validate_host_override_string(const char *pattern, grpc_slice str, grpc_end2end_test_config config)
Definition: end2end_test_utils.cc:45
grpc_slice_str_cmp
GPRAPI int grpc_slice_str_cmp(grpc_slice a, const char *b)
Definition: slice/slice.cc:426


grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:19