Fix build failure in credential_test.cc

pull/19493/head
Soheil Hassas Yeganeh 5 years ago
parent 0d2d88fce5
commit dc858eea25
  1. 12
      test/core/security/credentials_test.cc

@ -32,9 +32,9 @@
#include <grpc/support/time.h>
#include "src/core/lib/gpr/env.h"
#include "src/core/lib/gpr/host_port.h"
#include "src/core/lib/gpr/string.h"
#include "src/core/lib/gpr/tmpfile.h"
#include "src/core/lib/gprpp/host_port.h"
#include "src/core/lib/http/httpcli.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/security/credentials/composite/composite_credentials.h"
@ -745,11 +745,11 @@ static void test_valid_sts_creds_options(void) {
grpc_core::ValidateStsCredentialsOptions(&valid_options, &sts_url);
GPR_ASSERT(error == GRPC_ERROR_NONE);
GPR_ASSERT(sts_url != nullptr);
grpc_core::StringView host;
grpc_core::StringView port;
GPR_ASSERT(grpc_core::SplitHostPort(sts_url->authority, &host, &port));
GPR_ASSERT(host.cmp("foo.com") == 0);
GPR_ASSERT(port.cmp("5555") == 0);
char* host;
char* port;
GPR_ASSERT(gpr_split_host_port(sts_url->authority, &host, &port));
GPR_ASSERT(strcmp(host, "foo.com") == 0);
GPR_ASSERT(strcmp(port, "5555") == 0);
grpc_uri_destroy(sts_url);
}

Loading…
Cancel
Save