Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Protected Attributes | List of all members
net_instaweb::GrpcServerTest Class Referenceabstract

#include "grpc_server_test.h"

Inheritance diagram for net_instaweb::GrpcServerTest:

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< ThreadSystemthread_system_
 
std::unique_ptr
<::grpc::ServerCompletionQueue > 
queue_
 

Detailed Description

Fixture for testing gRPC servers. Contains an event dispatcher thread, plus some other bits you'll need.

Member Function Documentation

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.


The documentation for this class was generated from the following file: