aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end/end2end_nosec_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/end2end/end2end_nosec_tests.c')
-rw-r--r--test/core/end2end/end2end_nosec_tests.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/core/end2end/end2end_nosec_tests.c b/test/core/end2end/end2end_nosec_tests.c
index caaa97c215..7e9b6eb233 100644
--- a/test/core/end2end/end2end_nosec_tests.c
+++ b/test/core/end2end/end2end_nosec_tests.c
@@ -416,3 +416,16 @@ void grpc_end2end_tests(int argc, char **argv,
abort();
}
}
+
+const char *get_host_override_string(const char *str,
+ grpc_end2end_test_config config) {
+ return (config.feature_mask & FEATURE_MASK_SUPPORTS_AUTHORITY_HEADER ? str
+ : NULL);
+}
+
+void validate_host_override_string(const char *pattern, const char *str,
+ grpc_end2end_test_config config) {
+ if (config.feature_mask & FEATURE_MASK_SUPPORTS_AUTHORITY_HEADER) {
+ GPR_ASSERT(0 == strcmp(str, pattern));
+ }
+}