| 1 |
/* |
| 2 |
* |
| 3 |
* Copyright 2016 gRPC authors. |
| 4 |
* |
| 5 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 |
* you may not use this file except in compliance with the License. |
| 7 |
* You may obtain a copy of the License at |
| 8 |
* |
| 9 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
* |
| 11 |
* Unless required by applicable law or agreed to in writing, software |
| 12 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 13 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 |
* See the License for the specific language governing permissions and |
| 15 |
* limitations under the License. |
| 16 |
* |
| 17 |
*/ |
| 18 |
|
| 19 |
#ifndef GRPC_TEST_CPP_UTIL_CONFIG_GRPC_CLI_H |
| 20 |
#define GRPC_TEST_CPP_UTIL_CONFIG_GRPC_CLI_H |
| 21 |
|
| 22 |
#include <grpcpp/impl/codegen/config_protobuf.h> |
| 23 |
|
| 24 |
#ifndef GRPC_CUSTOM_DYNAMICMESSAGEFACTORY |
| 25 |
#include <google/protobuf/dynamic_message.h> |
| 26 |
#define GRPC_CUSTOM_DYNAMICMESSAGEFACTORY \ |
| 27 |
::google::protobuf::DynamicMessageFactory |
| 28 |
#endif |
| 29 |
|
| 30 |
#ifndef GRPC_CUSTOM_DESCRIPTORPOOLDATABASE |
| 31 |
#include <google/protobuf/descriptor.h> |
| 32 |
#define GRPC_CUSTOM_DESCRIPTORPOOLDATABASE \ |
| 33 |
::google::protobuf::DescriptorPoolDatabase |
| 34 |
#define GRPC_CUSTOM_MERGEDDESCRIPTORDATABASE \ |
| 35 |
::google::protobuf::MergedDescriptorDatabase |
| 36 |
#endif |
| 37 |
|
| 38 |
#ifndef GRPC_CUSTOM_TEXTFORMAT |
| 39 |
#include <google/protobuf/text_format.h> |
| 40 |
#define GRPC_CUSTOM_TEXTFORMAT ::google::protobuf::TextFormat |
| 41 |
#endif |
| 42 |
|
| 43 |
#ifndef GRPC_CUSTOM_DISKSOURCETREE |
| 44 |
#include <google/protobuf/compiler/importer.h> |
| 45 |
#define GRPC_CUSTOM_DISKSOURCETREE ::google::protobuf::compiler::DiskSourceTree |
| 46 |
#define GRPC_CUSTOM_IMPORTER ::google::protobuf::compiler::Importer |
| 47 |
#define GRPC_CUSTOM_MULTIFILEERRORCOLLECTOR \ |
| 48 |
::google::protobuf::compiler::MultiFileErrorCollector |
| 49 |
#endif |
| 50 |
|
| 51 |
namespace grpc { |
| 52 |
namespace protobuf { |
| 53 |
|
| 54 |
typedef GRPC_CUSTOM_DYNAMICMESSAGEFACTORY DynamicMessageFactory; |
| 55 |
|
| 56 |
typedef GRPC_CUSTOM_DESCRIPTORPOOLDATABASE DescriptorPoolDatabase; |
| 57 |
typedef GRPC_CUSTOM_MERGEDDESCRIPTORDATABASE MergedDescriptorDatabase; |
| 58 |
|
| 59 |
typedef GRPC_CUSTOM_TEXTFORMAT TextFormat; |
| 60 |
|
| 61 |
namespace compiler { |
| 62 |
typedef GRPC_CUSTOM_DISKSOURCETREE DiskSourceTree; |
| 63 |
typedef GRPC_CUSTOM_IMPORTER Importer; |
| 64 |
typedef GRPC_CUSTOM_MULTIFILEERRORCOLLECTOR MultiFileErrorCollector; |
| 65 |
} // namespace compiler |
| 66 |
|
| 67 |
} // namespace protobuf |
| 68 |
} // namespace grpc |
| 69 |
|
| 70 |
#endif // GRPC_TEST_CPP_UTIL_CONFIG_GRPC_CLI_H |