diff options
author | mlumish <mlumish@google.com> | 2015-01-02 13:27:28 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-01-05 17:43:09 -0800 |
commit | dba878978d08045fa7f88015f492a88ed32e80e6 (patch) | |
tree | 62abc317d0ebe9ab9565ff35ab84de5635e75e78 /src/php/tests/unit_tests | |
parent | fa37163f5c8e8cf2dc0b79676bd69c07adb7e226 (diff) |
Replaced calls to grpc_call_accept with newer functions
Change on 2015/01/02 by mlumish <mlumish@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83145830
Diffstat (limited to 'src/php/tests/unit_tests')
-rwxr-xr-x | src/php/tests/unit_tests/EndToEndTest.php | 13 | ||||
-rwxr-xr-x | src/php/tests/unit_tests/SecureEndToEndTest.php | 12 |
2 files changed, 21 insertions, 4 deletions
diff --git a/src/php/tests/unit_tests/EndToEndTest.php b/src/php/tests/unit_tests/EndToEndTest.php index be801bf016..2996780dc1 100755 --- a/src/php/tests/unit_tests/EndToEndTest.php +++ b/src/php/tests/unit_tests/EndToEndTest.php @@ -52,7 +52,12 @@ class EndToEndTest extends PHPUnit_Framework_TestCase{ $server_call = $event->get_call(); $this->assertNotNull($server_call); $this->assertEquals(Grpc\CALL_OK, - $server_call->accept($this->server_queue, $server_tag)); + $server_call->server_accept($this->server_queue, + $server_tag)); + + $this->assertEquals(Grpc\CALL_OK, + $server_call->server_end_initial_metadata()); + // the server sends the status $this->assertEquals(Grpc\CALL_OK, @@ -125,7 +130,11 @@ class EndToEndTest extends PHPUnit_Framework_TestCase{ $server_call = $event->get_call(); $this->assertNotNull($server_call); $this->assertEquals(Grpc\CALL_OK, - $server_call->accept($this->server_queue, $server_tag)); + $server_call->server_accept($this->server_queue, + $server_tag)); + + $this->assertEquals(Grpc\CALL_OK, + $server_call->server_end_initial_metadata()); // start the server read $this->assertEquals(Grpc\CALL_OK, $server_call->start_read($server_tag)); diff --git a/src/php/tests/unit_tests/SecureEndToEndTest.php b/src/php/tests/unit_tests/SecureEndToEndTest.php index d14574b4f7..167022334f 100755 --- a/src/php/tests/unit_tests/SecureEndToEndTest.php +++ b/src/php/tests/unit_tests/SecureEndToEndTest.php @@ -62,7 +62,11 @@ class SecureEndToEndTest extends PHPUnit_Framework_TestCase{ $server_call = $event->get_call(); $this->assertNotNull($server_call); $this->assertEquals(Grpc\CALL_OK, - $server_call->accept($this->server_queue, $server_tag)); + $server_call->server_accept($this->server_queue, + $server_tag)); + + $this->assertEquals(Grpc\CALL_OK, + $server_call->server_end_initial_metadata()); // the server sends the status $this->assertEquals(Grpc\CALL_OK, @@ -135,7 +139,11 @@ class SecureEndToEndTest extends PHPUnit_Framework_TestCase{ $server_call = $event->get_call(); $this->assertNotNull($server_call); $this->assertEquals(Grpc\CALL_OK, - $server_call->accept($this->server_queue, $server_tag)); + $server_call->server_accept($this->server_queue, + $server_tag)); + + $this->assertEquals(Grpc\CALL_OK, + $server_call->server_end_initial_metadata()); // start the server read $this->assertEquals(Grpc\CALL_OK, $server_call->start_read($server_tag)); |