Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Unified Diff: third_party/grpc/src/php/tests/generated_code/GeneratedCodeTest.php

Issue 1932353002: Initial checkin of gRPC to third_party/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
+ }
}

Powered by Google App Engine
This is Rietveld 408576698