diff options
author | ncteisen <ncteisen@gmail.com> | 2018-02-27 11:55:10 -0800 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2018-04-06 07:05:27 -0700 |
commit | cf5b2666e16f7b6ebc1bda4a884045d1ef1a4134 (patch) | |
tree | b945a65fa777134898ec029cfc094d69b1190024 /test/cpp/util | |
parent | 1c73e2c53ddecf3bd45f1c28d23a895fc7cd6e12 (diff) |
Make GrpcProtoBufferReaderWriter public
Diffstat (limited to 'test/cpp/util')
-rw-r--r-- | test/cpp/util/byte_buffer_test.cc | 6 | ||||
-rw-r--r-- | test/cpp/util/slice_test.cc | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/test/cpp/util/byte_buffer_test.cc b/test/cpp/util/byte_buffer_test.cc index 605ef15123..47a5b7f03a 100644 --- a/test/cpp/util/byte_buffer_test.cc +++ b/test/cpp/util/byte_buffer_test.cc @@ -16,7 +16,8 @@ * */ -#include <grpcpp/support/byte_buffer.h> +#include <grpc++/support/byte_buffer.h> +#include <grpcpp/impl/grpc_library.h> #include <cstring> #include <vector> @@ -27,6 +28,9 @@ #include <gtest/gtest.h> namespace grpc { + +static internal::GrpcLibraryInitializer g_gli_initializer; + namespace { const char* kContent1 = "hello xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; diff --git a/test/cpp/util/slice_test.cc b/test/cpp/util/slice_test.cc index 8e06062360..dc1910038f 100644 --- a/test/cpp/util/slice_test.cc +++ b/test/cpp/util/slice_test.cc @@ -16,13 +16,17 @@ * */ -#include <grpcpp/support/slice.h> +#include <grpc++/support/slice.h> +#include <grpcpp/impl/grpc_library.h> #include <grpc/grpc.h> #include <grpc/slice.h> #include <gtest/gtest.h> namespace grpc { + +static internal::GrpcLibraryInitializer g_gli_initializer; + namespace { const char* kContent = "hello xxxxxxxxxxxxxxxxxxxx world"; |