Convert validate_host_override_string into a function and rename into get_host_override_string

pull/8241/head
Muxi Yan 8 years ago
parent ed2be64d82
commit df1da9ffc0
  1. 4
      test/core/end2end/end2end_nosec_tests.c
  2. 4
      test/core/end2end/end2end_tests.c
  3. 5
      test/core/end2end/end2end_tests.h
  4. 4
      test/core/end2end/tests/binary_metadata.c
  5. 4
      test/core/end2end/tests/call_creds.c
  6. 4
      test/core/end2end/tests/cancel_after_accept.c
  7. 4
      test/core/end2end/tests/cancel_after_client_done.c
  8. 4
      test/core/end2end/tests/cancel_after_invoke.c
  9. 4
      test/core/end2end/tests/cancel_before_invoke.c
  10. 4
      test/core/end2end/tests/cancel_in_a_vacuum.c
  11. 4
      test/core/end2end/tests/cancel_with_status.c
  12. 4
      test/core/end2end/tests/compressed_payload.c
  13. 4
      test/core/end2end/tests/disappearing_server.c
  14. 4
      test/core/end2end/tests/empty_batch.c
  15. 4
      test/core/end2end/tests/filter_call_init_fails.c
  16. 4
      test/core/end2end/tests/filter_causes_close.c
  17. 4
      test/core/end2end/tests/graceful_server_shutdown.c
  18. 4
      test/core/end2end/tests/high_initial_seqno.c
  19. 4
      test/core/end2end/tests/hpack_size.c
  20. 4
      test/core/end2end/tests/idempotent_request.c
  21. 4
      test/core/end2end/tests/invoke_large_request.c
  22. 4
      test/core/end2end/tests/large_metadata.c
  23. 4
      test/core/end2end/tests/load_reporting_hook.c
  24. 4
      test/core/end2end/tests/max_concurrent_streams.c
  25. 4
      test/core/end2end/tests/max_message_length.c
  26. 4
      test/core/end2end/tests/negative_deadline.c
  27. 4
      test/core/end2end/tests/network_status_change.c
  28. 4
      test/core/end2end/tests/no_logging.c
  29. 4
      test/core/end2end/tests/payload.c
  30. 4
      test/core/end2end/tests/ping_pong_streaming.c
  31. 4
      test/core/end2end/tests/registered_call.c
  32. 4
      test/core/end2end/tests/request_with_flags.c
  33. 4
      test/core/end2end/tests/request_with_payload.c
  34. 4
      test/core/end2end/tests/server_finishes_request.c
  35. 4
      test/core/end2end/tests/shutdown_finishes_calls.c
  36. 4
      test/core/end2end/tests/simple_cacheable_request.c
  37. 4
      test/core/end2end/tests/simple_delayed_request.c
  38. 4
      test/core/end2end/tests/simple_metadata.c
  39. 4
      test/core/end2end/tests/simple_request.c
  40. 4
      test/core/end2end/tests/streaming_error_response.c
  41. 4
      test/core/end2end/tests/trailing_metadata.c

@ -408,3 +408,7 @@ 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);
}

@ -416,3 +416,7 @@ 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);
}

@ -47,9 +47,6 @@ typedef struct grpc_end2end_test_config grpc_end2end_test_config;
#define FAIL_AUTH_CHECK_SERVER_ARG_NAME "fail_auth_check"
#define validate_host_override_string(str, config) \
((config).feature_mask & FEATURE_MASK_SUPPORTS_AUTHORITY_HEADER ? (str) : NULL)
struct grpc_end2end_test_fixture {
grpc_completion_queue *cq;
grpc_server *server;
@ -72,4 +69,6 @@ struct grpc_end2end_test_config {
void grpc_end2end_tests_pre_init(void);
void grpc_end2end_tests(int argc, char **argv, grpc_end2end_test_config config);
const char *get_host_override_string(const char *str, grpc_end2end_test_config config);
#endif /* GRPC_TEST_CORE_END2END_END2END_TESTS_H */

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -290,7 +290,7 @@ static void test_request_response_with_metadata_and_payload(
}
void binary_metadata(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
test_request_response_with_metadata_and_payload(config);
}

@ -51,7 +51,7 @@ static const char iam_selector[] = "selector";
static const char overridden_iam_token[] = "overridden_token";
static const char overridden_iam_selector[] = "overridden_selector";
static char *authority;
static const char *authority;
typedef enum { NONE, OVERRIDE, DESTROY } override_mode;
@ -475,7 +475,7 @@ static void test_request_with_server_rejecting_client_creds(
void call_creds(grpc_end2end_test_config config) {
if (config.feature_mask & FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
test_request_response_with_payload_and_call_creds(config);
test_request_response_with_payload_and_overridden_call_creds(config);
test_request_response_with_payload_and_deleted_call_creds(config);

@ -44,7 +44,7 @@
#include "test/core/end2end/cq_verifier.h"
#include "test/core/end2end/tests/cancel_test_helpers.h"
static void *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -231,7 +231,7 @@ static void test_cancel_after_accept(grpc_end2end_test_config config,
void cancel_after_accept(grpc_end2end_test_config config) {
unsigned i;
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
for (i = 0; i < GPR_ARRAY_SIZE(cancellation_modes); i++) {
test_cancel_after_accept(config, cancellation_modes[i]);
}

@ -44,7 +44,7 @@
#include "test/core/end2end/cq_verifier.h"
#include "test/core/end2end/tests/cancel_test_helpers.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -235,7 +235,7 @@ static void test_cancel_after_accept_and_writes_closed(
void cancel_after_client_done(grpc_end2end_test_config config) {
unsigned i;
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
for (i = 0; i < GPR_ARRAY_SIZE(cancellation_modes); i++) {
test_cancel_after_accept_and_writes_closed(config, cancellation_modes[i]);
}

@ -44,7 +44,7 @@
#include "test/core/end2end/cq_verifier.h"
#include "test/core/end2end/tests/cancel_test_helpers.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -194,7 +194,7 @@ static void test_cancel_after_invoke(grpc_end2end_test_config config,
void cancel_after_invoke(grpc_end2end_test_config config) {
unsigned i, j;
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
for (j = 2; j < 6; j++) {
for (i = 0; i < GPR_ARRAY_SIZE(cancellation_modes); i++) {
test_cancel_after_invoke(config, cancellation_modes[i], j);

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -191,7 +191,7 @@ static void test_cancel_before_invoke(grpc_end2end_test_config config,
void cancel_before_invoke(grpc_end2end_test_config config) {
size_t i;
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
for (i = 1; i <= 6; i++) {
test_cancel_before_invoke(config, i);
}

@ -44,7 +44,7 @@
#include "test/core/end2end/cq_verifier.h"
#include "test/core/end2end/tests/cancel_test_helpers.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -123,7 +123,7 @@ static void test_cancel_in_a_vacuum(grpc_end2end_test_config config,
void cancel_in_a_vacuum(grpc_end2end_test_config config) {
unsigned i;
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
for (i = 0; i < GPR_ARRAY_SIZE(cancellation_modes); i++) {
test_cancel_in_a_vacuum(config, cancellation_modes[i]);
}

@ -45,7 +45,7 @@
#include "src/core/lib/support/string.h"
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -178,7 +178,7 @@ static void test_invoke_simple_request(grpc_end2end_test_config config,
void cancel_with_status(grpc_end2end_test_config config) {
size_t i;
authority = validate_host_override_string("foo.test.google.fr:1234", config);
authority = get_host_override_string("foo.test.google.fr:1234", config);
for (i = 1; i <= 4; i++) {
test_invoke_simple_request(config, i);
}

@ -50,7 +50,7 @@
#include "src/core/lib/surface/call_test_only.h"
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -600,7 +600,7 @@ static void test_invoke_request_with_disabled_algorithm(
}
void compressed_payload(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
test_invoke_request_with_exceptionally_uncompressed_payload(config);
test_invoke_request_with_uncompressed_payload(config);
test_invoke_request_with_compressed_payload(config);

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -213,7 +213,7 @@ static void disappearing_server_test(grpc_end2end_test_config config) {
}
void disappearing_server(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr:1234", config);
authority = get_host_override_string("foo.test.google.fr:1234", config);
GPR_ASSERT(config.feature_mask & FEATURE_MASK_SUPPORTS_DELAYED_CONNECTION);
disappearing_server_test(config);
}

@ -45,7 +45,7 @@
#include "src/core/lib/support/string.h"
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -130,7 +130,7 @@ static void test_invoke_empty_body(grpc_end2end_test_config config) {
}
void empty_batch(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
test_invoke_empty_body(config);
}

@ -49,7 +49,7 @@
enum { TIMEOUT = 200000 };
static char *authority;
static const char *authority;
static bool g_enable_filter = false;
@ -265,7 +265,7 @@ static void init_plugin(void) {
static void destroy_plugin(void) {}
void filter_call_init_fails(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
g_enable_filter = true;
test_request(config);
g_enable_filter = false;

@ -46,7 +46,7 @@
#include "src/core/lib/surface/channel_init.h"
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static bool g_enable_filter = false;
@ -284,7 +284,7 @@ static void init_plugin(void) {
static void destroy_plugin(void) {}
void filter_causes_close(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
g_enable_filter = true;
test_request(config);
g_enable_filter = false;

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -212,7 +212,7 @@ static void test_early_server_shutdown_finishes_inflight_calls(
}
void graceful_server_shutdown(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
test_early_server_shutdown_finishes_inflight_calls(config);
}

@ -47,7 +47,7 @@
#include "src/core/lib/support/string.h"
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -241,7 +241,7 @@ static void test_invoke_10_simple_requests(grpc_end2end_test_config config,
}
void high_initial_seqno(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr:1234", config);
authority = get_host_override_string("foo.test.google.fr:1234", config);
test_invoke_10_simple_requests(config, 16777213);
if (config.feature_mask & FEATURE_MASK_SUPPORTS_DELAYED_CONNECTION) {
test_invoke_10_simple_requests(config, 2147483645);

@ -47,7 +47,7 @@
#include "src/core/lib/support/string.h"
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -398,7 +398,7 @@ void hpack_size(grpc_end2end_test_config config) {
1000, 32768, 4 * 1024 * 1024};
size_t i, j;
authority = validate_host_override_string("foo.test.google.fr:1234", config);
authority = get_host_override_string("foo.test.google.fr:1234", config);
for (i = 0; i < GPR_ARRAY_SIZE(interesting_sizes); i++) {
for (j = 0; j < GPR_ARRAY_SIZE(interesting_sizes); j++) {
test_size(config, interesting_sizes[i], interesting_sizes[j]);

@ -45,7 +45,7 @@
#include "src/core/lib/support/string.h"
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -244,7 +244,7 @@ static void test_invoke_10_simple_requests(grpc_end2end_test_config config) {
void idempotent_request(grpc_end2end_test_config config) {
int i;
authority = validate_host_override_string("foo.test.google.fr:1234", config);
authority = get_host_override_string("foo.test.google.fr:1234", config);
for (i = 0; i < 10; i++) {
test_invoke_simple_request(config);
}

@ -44,7 +44,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -274,7 +274,7 @@ static void test_invoke_large_request(grpc_end2end_test_config config,
}
void invoke_large_request(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
test_invoke_large_request(config, 16384, 65536);
test_invoke_large_request(config, 32768, 65536);

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -257,7 +257,7 @@ static void test_request_with_large_metadata(grpc_end2end_test_config config) {
}
void large_metadata(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
test_request_with_large_metadata(config);
}

@ -48,7 +48,7 @@
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/transport/static_metadata.h"
static char *authority;
static const char *authority;
enum { TIMEOUT = 200000 };
@ -316,7 +316,7 @@ static void test_load_reporting_hook(grpc_end2end_test_config config) {
}
void load_reporting_hook(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
test_load_reporting_hook(config);
}

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -441,7 +441,7 @@ static void test_max_concurrent_streams(grpc_end2end_test_config config) {
}
void max_concurrent_streams(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr:1234", config);
authority = get_host_override_string("foo.test.google.fr:1234", config);
test_max_concurrent_streams(config);
}

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -397,7 +397,7 @@ static void test_max_message_length_on_response(grpc_end2end_test_config config,
}
void max_message_length(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr:1234", config);
authority = get_host_override_string("foo.test.google.fr:1234", config);
test_max_message_length_on_request(config, false /* send_limit */);
test_max_message_length_on_request(config, true /* send_limit */);
test_max_message_length_on_response(config, false /* send_limit */);

@ -45,7 +45,7 @@
#include "src/core/lib/support/string.h"
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -175,7 +175,7 @@ static void test_invoke_simple_request(grpc_end2end_test_config config,
void negative_deadline(grpc_end2end_test_config config) {
size_t i;
authority = validate_host_override_string("foo.test.google.fr:1234", config);
authority = get_host_override_string("foo.test.google.fr:1234", config);
for (i = 1; i <= 4; i++) {
test_invoke_simple_request(config, i);
}

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
/* this is a private API but exposed here for testing*/
extern void grpc_network_status_shutdown_all_endpoints();
@ -238,7 +238,7 @@ static void test_invoke_network_status_change(grpc_end2end_test_config config) {
}
void network_status_change(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
test_invoke_network_status_change(config);
}

@ -47,7 +47,7 @@
#include "src/core/lib/support/string.h"
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
enum { TIMEOUT = 200000 };
@ -296,7 +296,7 @@ static void test_no_logging_in_one_request(grpc_end2end_test_config config) {
}
void no_logging(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr:1234", config);
authority = get_host_override_string("foo.test.google.fr:1234", config);
gpr_set_log_function(log_dispatcher_func);
test_no_logging_in_one_request(config);
test_no_error_logging_in_entire_process(config);

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -270,7 +270,7 @@ static void test_invoke_10_request_response_with_payload(
}
void payload(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
test_invoke_request_response_with_payload(config);
test_invoke_10_request_response_with_payload(config);
}

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -277,7 +277,7 @@ static void test_pingpong_streaming(grpc_end2end_test_config config,
void ping_pong_streaming(grpc_end2end_test_config config) {
int i;
authority = validate_host_override_string("foo.test.google.fr:1234", config);
authority = get_host_override_string("foo.test.google.fr:1234", config);
for (i = 1; i < 10; i++) {
test_pingpong_streaming(config, i);
}

@ -45,7 +45,7 @@
#include "src/core/lib/support/string.h"
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -230,7 +230,7 @@ static void test_invoke_10_simple_requests(grpc_end2end_test_config config) {
}
void registered_call(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr:1234", config);
authority = get_host_override_string("foo.test.google.fr:1234", config);
test_invoke_simple_request(config);
test_invoke_10_simple_requests(config);
}

@ -44,7 +44,7 @@
#include "src/core/lib/transport/byte_stream.h"
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -188,7 +188,7 @@ static void test_invoke_request_with_flags(
void request_with_flags(grpc_end2end_test_config config) {
size_t i;
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
uint32_t flags_for_op[GRPC_OP_RECV_CLOSE_ON_SERVER + 1];
{

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -235,7 +235,7 @@ static void test_invoke_request_with_payload(grpc_end2end_test_config config) {
}
void request_with_payload(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
test_invoke_request_with_payload(config);
}

@ -45,7 +45,7 @@
#include "src/core/lib/support/string.h"
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -211,7 +211,7 @@ static void test_invoke_simple_request(grpc_end2end_test_config config) {
}
void server_finishes_request(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr:1234", config);
authority = get_host_override_string("foo.test.google.fr:1234", config);
test_invoke_simple_request(config);
}

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -194,7 +194,7 @@ static void test_early_server_shutdown_finishes_inflight_calls(
}
void shutdown_finishes_calls(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
test_early_server_shutdown_finishes_inflight_calls(config);
}

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
enum { TIMEOUT = 200000 };
@ -274,7 +274,7 @@ static void test_cacheable_request_response_with_metadata_and_payload(
}
void simple_cacheable_request(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
test_cacheable_request_response_with_metadata_and_payload(config);
}

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -221,7 +221,7 @@ static void test_simple_delayed_request_long(grpc_end2end_test_config config) {
}
void simple_delayed_request(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
GPR_ASSERT(config.feature_mask & FEATURE_MASK_SUPPORTS_DELAYED_CONNECTION);
test_simple_delayed_request_short(config);
test_simple_delayed_request_long(config);

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -266,7 +266,7 @@ static void test_request_response_with_metadata_and_payload(
}
void simple_metadata(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
test_request_response_with_metadata_and_payload(config);
}

@ -45,7 +45,7 @@
#include "src/core/lib/support/string.h"
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -244,7 +244,7 @@ static void test_invoke_10_simple_requests(grpc_end2end_test_config config) {
void simple_request(grpc_end2end_test_config config) {
int i;
authority = validate_host_override_string("foo.test.google.fr:1234", config);
authority = get_host_override_string("foo.test.google.fr:1234", config);
for (i = 0; i < 10; i++) {
test_invoke_simple_request(config);
}

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -273,7 +273,7 @@ static void test(grpc_end2end_test_config config, bool request_status_early) {
}
void streaming_error_response(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
test(config, false);
test(config, true);
}

@ -43,7 +43,7 @@
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
static char *authority;
static const char *authority;
static void *tag(intptr_t t) { return (void *)t; }
@ -271,7 +271,7 @@ static void test_request_response_with_metadata_and_payload(
}
void trailing_metadata(grpc_end2end_test_config config) {
authority = validate_host_override_string("foo.test.google.fr", config);
authority = get_host_override_string("foo.test.google.fr", config);
test_request_response_with_metadata_and_payload(config);
}

Loading…
Cancel
Save