PHP: fix QPS tests not working

pull/15282/head
ZhouyihaiDing 7 years ago
parent fec4b30d9a
commit 29bfaf490e
  1. 2
      src/php/tests/qps/client.php
  2. 58
      src/php/tests/qps/generated_code/GPBMetadata/Src/Proto/Grpc/Testing/Services.php
  3. 23
      src/php/tests/qps/generated_code/Grpc/Testing/Void.php

@ -70,7 +70,7 @@ function qps_client_main($proxy_address, $server_ind) {
$proxystubopts = [];
$proxystubopts['credentials'] = Grpc\ChannelCredentials::createInsecure();
$proxystub = new Grpc\Testing\ProxyClientServiceClient($proxy_address, $proxystubopts);
list($config, $status) = $proxystub->GetConfig(new Grpc\Testing\Void())->wait();
list($config, $status) = $proxystub->GetConfig(new Grpc\Testing\PBVoid())->wait();
hardAssertIfStatusOk($status);
hardAssert($config->getOutstandingRpcsPerChannel() == 1, "Only 1 outstanding RPC supported");

@ -1,58 +0,0 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: src/proto/grpc/testing/services.proto
namespace GPBMetadata\Src\Proto\Grpc\Testing;
class Services
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce();
\GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
\GPBMetadata\Src\Proto\Grpc\Testing\Stats::initOnce();
$pool->internalAddGeneratedFile(hex2bin(
"0aaa070a257372632f70726f746f2f677270632f74657374696e672f7365" .
"7276696365732e70726f746f120c677270632e74657374696e671a247372" .
"632f70726f746f2f677270632f74657374696e672f636f6e74726f6c2e70" .
"726f746f1a227372632f70726f746f2f677270632f74657374696e672f73" .
"746174732e70726f746f32a6030a1042656e63686d61726b536572766963" .
"6512460a09556e61727943616c6c121b2e677270632e74657374696e672e" .
"53696d706c65526571756573741a1c2e677270632e74657374696e672e53" .
"696d706c65526573706f6e7365124e0a0d53747265616d696e6743616c6c" .
"121b2e677270632e74657374696e672e53696d706c65526571756573741a" .
"1c2e677270632e74657374696e672e53696d706c65526573706f6e736528" .
"01300112520a1353747265616d696e6746726f6d436c69656e74121b2e67" .
"7270632e74657374696e672e53696d706c65526571756573741a1c2e6772" .
"70632e74657374696e672e53696d706c65526573706f6e7365280112520a" .
"1353747265616d696e6746726f6d536572766572121b2e677270632e7465" .
"7374696e672e53696d706c65526571756573741a1c2e677270632e746573" .
"74696e672e53696d706c65526573706f6e7365300112520a115374726561" .
"6d696e67426f746857617973121b2e677270632e74657374696e672e5369" .
"6d706c65526571756573741a1c2e677270632e74657374696e672e53696d" .
"706c65526573706f6e7365280130013297020a0d576f726b657253657276" .
"69636512450a0952756e53657276657212182e677270632e74657374696e" .
"672e536572766572417267731a1a2e677270632e74657374696e672e5365" .
"727665725374617475732801300112450a0952756e436c69656e7412182e" .
"677270632e74657374696e672e436c69656e74417267731a1a2e67727063" .
"2e74657374696e672e436c69656e745374617475732801300112420a0943" .
"6f7265436f756e7412192e677270632e74657374696e672e436f72655265" .
"71756573741a1a2e677270632e74657374696e672e436f7265526573706f" .
"6e736512340a0a51756974576f726b657212122e677270632e7465737469" .
"6e672e566f69641a122e677270632e74657374696e672e566f6964325e0a" .
"185265706f72745170735363656e6172696f5365727669636512420a0e52" .
"65706f72745363656e6172696f121c2e677270632e74657374696e672e53" .
"63656e6172696f526573756c741a122e677270632e74657374696e672e56" .
"6f6964620670726f746f33"
));
static::$is_initialized = true;
}
}

@ -1,23 +0,0 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: src/proto/grpc/testing/control.proto
namespace Grpc\Testing;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>grpc.testing.Void</code>
*/
class Void extends \Google\Protobuf\Internal\Message
{
public function __construct() {
\GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
parent::__construct();
}
}
Loading…
Cancel
Save