| Index: third_party/grpc/src/php/tests/generated_code/GeneratedCodeTest.php
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionRegistryStub.js b/third_party/grpc/src/php/tests/generated_code/GeneratedCodeTest.php
|
| similarity index 76%
|
| copy from third_party/WebKit/Source/devtools/front_end/extensions/ExtensionRegistryStub.js
|
| copy to third_party/grpc/src/php/tests/generated_code/GeneratedCodeTest.php
|
| index 258088024c3eecb85a82d2285cefb68b0ec87955..0cdce6cf924e0516bc68a292d85ade14284fdff2 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/extensions/ExtensionRegistryStub.js
|
| +++ b/third_party/grpc/src/php/tests/generated_code/GeneratedCodeTest.php
|
| @@ -1,5 +1,8 @@
|
| +<?php
|
| /*
|
| - * Copyright (C) 2010 Google Inc. All rights reserved.
|
| + *
|
| + * Copyright 2015, Google Inc.
|
| + * All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions are
|
| @@ -26,23 +29,22 @@
|
| * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| + *
|
| */
|
| +require_once dirname(__FILE__).'/AbstractGeneratedCodeTest.php';
|
|
|
| -if (!window.InspectorExtensionRegistry) {
|
| -
|
| -/**
|
| - * @constructor
|
| - */
|
| -WebInspector.InspectorExtensionRegistryStub = function()
|
| +class GeneratedCodeTest extends AbstractGeneratedCodeTest
|
| {
|
| -}
|
| -
|
| -WebInspector.InspectorExtensionRegistryStub.prototype = {
|
| - getExtensionsAsync: function()
|
| + public function setUp()
|
| {
|
| + self::$client = new math\MathClient(
|
| + getenv('GRPC_TEST_HOST'), [
|
| + 'credentials' => Grpc\ChannelCredentials::createInsecure(),
|
| + ]);
|
| }
|
| -}
|
| -
|
| -var InspectorExtensionRegistry = new WebInspector.InspectorExtensionRegistryStub();
|
|
|
| + public function tearDown()
|
| + {
|
| + self::$client->close();
|
| + }
|
| }
|
|
|