try adding extern

pull/22695/head
ZhenLian 5 years ago
parent dd44231a32
commit 2c84dec7da
  1. 1
      test/cpp/util/test_credentials_provider.cc
  2. 6
      test/cpp/util/test_credentials_provider.h

@ -31,7 +31,6 @@
#include <unordered_map> #include <unordered_map>
#include "src/core/lib/iomgr/load_file.h" #include "src/core/lib/iomgr/load_file.h"
#include "test/core/end2end/data/ssl_test_data.h"
#define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem" #define CA_CERT_PATH "src/core/tsi/test_creds/ca.pem"
#define SERVER_CERT_PATH "src/core/tsi/test_creds/server1.pem" #define SERVER_CERT_PATH "src/core/tsi/test_creds/server1.pem"

@ -19,12 +19,16 @@
#ifndef GRPC_TEST_CPP_UTIL_TEST_CREDENTIALS_PROVIDER_H #ifndef GRPC_TEST_CPP_UTIL_TEST_CREDENTIALS_PROVIDER_H
#define GRPC_TEST_CPP_UTIL_TEST_CREDENTIALS_PROVIDER_H #define GRPC_TEST_CPP_UTIL_TEST_CREDENTIALS_PROVIDER_H
#include <memory> extern const char test_root_cert[];
extern const char server_cert[];
extern const char server_key[];
#include <grpcpp/security/credentials.h> #include <grpcpp/security/credentials.h>
#include <grpcpp/security/server_credentials.h> #include <grpcpp/security/server_credentials.h>
#include <grpcpp/support/channel_arguments.h> #include <grpcpp/support/channel_arguments.h>
#include <memory>
namespace grpc { namespace grpc {
namespace testing { namespace testing {

Loading…
Cancel
Save