Functions
grpclb_fallback_test.cc File Reference
#include <grpc/support/port_platform.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <inttypes.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/wait.h>
#include <unistd.h>
#include <chrono>
#include <cstdlib>
#include <memory>
#include <string>
#include <thread>
#include "absl/flags/flag.h"
#include "absl/time/time.h"
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpcpp/channel.h>
#include <grpcpp/client_context.h>
#include <grpcpp/grpcpp.h>
#include <grpcpp/support/channel_arguments.h>
#include "src/core/lib/gpr/string.h"
#include "src/core/lib/iomgr/port.h"
#include "src/core/lib/iomgr/socket_mutator.h"
#include "src/proto/grpc/testing/empty.pb.h"
#include "src/proto/grpc/testing/messages.pb.h"
#include "src/proto/grpc/testing/test.grpc.pb.h"
#include "src/proto/grpc/testing/test.pb.h"
#include "test/cpp/util/test_config.h"
#include "test/cpp/util/test_credentials_provider.h"
Include dependency graph for grpclb_fallback_test.cc:

Go to the source code of this file.

Functions

 ABSL_FLAG (int, fallback_deadline_seconds, 1, "Number of seconds to wait for fallback to occur after inducing it")
 
 ABSL_FLAG (std::string, custom_credentials_type, "", "User provided credentials type.")
 
 ABSL_FLAG (std::string, induce_fallback_cmd, "exit 1", "Shell command to induce fallback, e.g. by unrouting addresses")
 
 ABSL_FLAG (std::string, server_uri, "localhost:1000", "Server URI target")
 
 ABSL_FLAG (std::string, test_case, "", "Test case to run. Valid options are:\n\n" "fallback_before_startup : fallback before making RPCs to backends" "fallback_after_startup : fallback after making RPCs to backends")
 
int main (int argc, char **argv)
 

Function Documentation

◆ ABSL_FLAG() [1/5]

ABSL_FLAG ( int  ,
fallback_deadline_seconds  ,
,
"Number of seconds to wait for fallback to occur after inducing it  
)

◆ ABSL_FLAG() [2/5]

ABSL_FLAG ( std::string  ,
custom_credentials_type  ,
""  ,
"User provided credentials type."   
)

◆ ABSL_FLAG() [3/5]

ABSL_FLAG ( std::string  ,
induce_fallback_cmd  ,
"exit 1"  ,
"Shell command to induce  fallback,
e.g. by unrouting addresses"   
)

◆ ABSL_FLAG() [4/5]

ABSL_FLAG ( std::string  ,
server_uri  ,
"localhost:1000"  ,
"Server URI target"   
)

◆ ABSL_FLAG() [5/5]

ABSL_FLAG ( std::string  ,
test_case  ,
""  ,
"Test case to run. Valid options are:\n\n" "fallback_before_startup : fallback before making RPCs to backends" "fallback_after_startup : fallback after making RPCs to backends"   
)

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 256 of file grpclb_fallback_test.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:16