diff options
author | David Garcia Quintas <dgq@google.com> | 2016-03-31 09:20:42 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-03-31 09:20:42 -0700 |
commit | 057054f665f02bcda1155f0e637c265cf01b3b3e (patch) | |
tree | f081e4b74918870cf95ab457f002505cc599e6e3 /test/core/client_config/uri_parser_test.c | |
parent | e3a49f82c4009112a96eca233b13a48f4350079a (diff) |
Added grpc_uri_get_query_arg per comments.
Diffstat (limited to 'test/core/client_config/uri_parser_test.c')
-rw-r--r-- | test/core/client_config/uri_parser_test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/core/client_config/uri_parser_test.c b/test/core/client_config/uri_parser_test.c index bc3e01c90a..6cb8c1d535 100644 --- a/test/core/client_config/uri_parser_test.c +++ b/test/core/client_config/uri_parser_test.c @@ -80,6 +80,11 @@ static void test_query_parts() { GPR_ASSERT(0 == strcmp("", uri->query_parts[3])); GPR_ASSERT(NULL == uri->query_parts_values[3]); + GPR_ASSERT(NULL == grpc_uri_get_query_arg(uri, "a")); + GPR_ASSERT(0 == strcmp("B", grpc_uri_get_query_arg(uri, "b"))); + GPR_ASSERT(0 == strcmp("", grpc_uri_get_query_arg(uri, "c"))); + GPR_ASSERT(NULL == grpc_uri_get_query_arg(uri, "")); + GPR_ASSERT(0 == strcmp("frag", uri->fragment)); grpc_uri_destroy(uri); } |