Go to the documentation of this file.
19 #include <gtest/gtest.h>
21 #include "absl/memory/memory.h"
34 #include "src/proto/grpc/testing/echo.grpc.pb.h"
59 std::shared_ptr<Channel>
channel =
61 stub_ = grpc::testing::EchoTestService::NewStub(
channel);
62 desc_db_ = absl::make_unique<ProtoReflectionDescriptorDatabase>(
channel);
67 std::stringstream strs;
122 std::unique_ptr<grpc::testing::EchoTestService::Stub>
stub_;
123 std::unique_ptr<ProtoReflectionDescriptorDatabase>
desc_db_;
148 int main(
int argc,
char** argv) {
const std::string & full_name() const
std::string DebugString() const
std::unique_ptr< grpc::testing::EchoTestService::Stub > stub_
ProtoServerReflectionTest()
std::string DebugString() const
const Descriptor * output_type() const
std::unordered_set< string > known_types_
std::string server_address("0.0.0.0:10000")
const protobuf::DescriptorPool * ref_desc_pool_
const std::string & package() const
wrapped_grpc_channel * channel
std::string DebugString() const
A builder class for the creation and startup of grpc::Server instances.
void CompareMethod(const std::string &method)
void CompareService(const std::string &service)
std::shared_ptr< Channel > CreateChannel(const grpc::string &target, const std::shared_ptr< ChannelCredentials > &creds)
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
int main(int argc, char **argv)
int grpc_pick_unused_port_or_die(void)
const FileDescriptor * file() const
std::unordered_set< string > known_files_
void CompareType(const std::string &type)
const std::string & name() const
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
reflection::ProtoServerReflectionPlugin plugin_
const Descriptor * input_type() const
TEST_F(ChannelArgumentsTest, SetInt)
static const DescriptorPool * generated_pool()
EXPECT_EQ(options.token_exchange_service_uri, "https://foo/exchange")
std::shared_ptr< ServerCredentials > InsecureServerCredentials()
std::unique_ptr< protobuf::DescriptorPool > desc_pool_
const MethodDescriptor * method(int index) const
EXPECT_TRUE(grpc::experimental::StsCredentialsOptionsFromJson(minimum_valid_json, &options) .ok())
std::unique_ptr< ProtoReflectionDescriptorDatabase > desc_db_
std::shared_ptr< ChannelCredentials > InsecureChannelCredentials()
Credentials for an unencrypted, unauthenticated channel.
__attribute__((deprecated("Please use GRPCProtoMethod."))) @interface ProtoMethod NSString * service
const MethodDescriptor * FindMethodByName(const std::string &name) const
string to_string(const int number)
std::string DebugString() const
const std::string & full_name() const
std::unique_ptr< Server > server_
const ServiceDescriptor * FindServiceByName(const std::string &name) const
const Descriptor * FindMessageTypeByName(const std::string &name) const
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:56