|
Page Speed Optimization Libraries
1.13.35.1
|
#include "grpc_server_test.h"
Classes | |
| class | BaseClientConnection |
| Holder for various pieces of a client connection. More... | |
Public Member Functions | |
| void | SetUp () override |
| Binds server_ to the address returned by ListenAddress(). | |
| void | StopServer () |
| Blocks until server_ is stopped. | |
| void | QueueFunctionForServerThread (Function *func) |
| GoogleString | ServerAddress () const |
Protected Attributes | |
| std::unique_ptr< ThreadSystem > | thread_system_ |
|
std::unique_ptr <::grpc::ServerCompletionQueue > | queue_ |
Fixture for testing gRPC servers. Contains an event dispatcher thread, plus some other bits you'll need.
| void net_instaweb::GrpcServerTest::QueueFunctionForServerThread | ( | Function * | func | ) |
Have the server thread call Run() (never Cancel()) on the supplied function, ASAP. This call is thread-safe.
1.8.6