Home | History | Annotate | Download | only in unit_tests

Lines Matching refs:Grpc

4  * Copyright 2015 gRPC authors.
24 $this->credentials = Grpc\ChannelCredentials::createSsl(
26 $this->call_credentials = Grpc\CallCredentials::createFromPlugin(
28 $this->credentials = Grpc\ChannelCredentials::createComposite(
32 $server_credentials = Grpc\ServerCredentials::createSsl(
36 $this->server = new Grpc\Server();
41 $this->channel = new Grpc\Channel(
45 'grpc.ssl_target_name_override' => $this->host_override,
46 'grpc.default_authority' => $this->host_override,
68 $deadline = Grpc\Timeval::infFuture();
70 $call = new Grpc\Call($this->channel,
76 Grpc\OP_SEND_INITIAL_METADATA => [],
77 Grpc\OP_SEND_CLOSE_FROM_CLIENT => true,
96 Grpc\OP_SEND_INITIAL_METADATA => [],
97 Grpc\OP_SEND_STATUS_FROM_SERVER => [
99 'code' => Grpc\STATUS_OK,
102 Grpc\OP_RECV_CLOSE_ON_SERVER => true,
110 Grpc\OP_RECV_INITIAL_METADATA => true,
111 Grpc\OP_RECV_STATUS_ON_CLIENT => true,
117 $this->assertSame(Grpc\STATUS_OK, $status->code);
131 $call_credentials2 = Grpc\CallCredentials::createFromPlugin(
133 $call_credentials3 = Grpc\CallCredentials::createComposite(
137 $this->assertSame('Grpc\CallCredentials',
146 $call_credentials = Grpc\CallCredentials::createFromPlugin(
156 $call_credentials3 = Grpc\CallCredentials::createComposite(