Go to the documentation of this file.
19 #include <gmock/gmock.h>
32 TEST(NoProxyTest, EmptyList) {
36 const_cast<char*
>(
"http://proxy.google.com"));
39 char* name_to_resolve =
nullptr;
40 EXPECT_TRUE(HttpProxyMapper().MapName(
"dns:///test.google.com:443", &
args,
41 &name_to_resolve, &new_args));
45 "test.google.com:443");
52 TEST(NoProxyTest, Basic) {
56 const_cast<char*
>(
"http://proxy.google.com"));
59 char* name_to_resolve =
nullptr;
61 &name_to_resolve, &new_args));
72 TEST(NoProxyTest, EmptyEntries) {
73 gpr_setenv(
"no_proxy",
"foo.com,,google.com,,");
76 const_cast<char*
>(
"http://proxy.google.com"));
79 char* name_to_resolve =
nullptr;
81 &name_to_resolve, &new_args));
95 int main(
int argc,
char** argv) {
#define EXPECT_FALSE(condition)
char * grpc_channel_args_find_string(const grpc_channel_args *args, const char *name)
int main(int argc, char **argv)
GPRAPI void gpr_free(void *ptr)
grpc_arg grpc_channel_arg_string_create(char *name, char *value)
#define GRPC_ARG_HTTP_PROXY
void grpc_channel_args_destroy(grpc_channel_args *a)
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
#define EXPECT_STREQ(s1, s2)
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
TEST(ServiceConfigParserTest, DoubleRegistration)
#define EXPECT_TRUE(condition)
void gpr_unsetenv(const char *name)
void gpr_setenv(const char *name, const char *value)
#define GRPC_ARG_HTTP_CONNECT_SERVER
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:02