Index: third_party/grpc/src/php/bin/generate_proto_php.sh |
diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/echo-path_wsh.py b/third_party/grpc/src/php/bin/generate_proto_php.sh |
old mode 100644 |
new mode 100755 |
similarity index 84% |
copy from third_party/WebKit/LayoutTests/http/tests/websocket/echo-path_wsh.py |
copy to third_party/grpc/src/php/bin/generate_proto_php.sh |
index 6072a28e6c821bdf301d4c1cf7e2c50c2cebdeef..16f93747ab8e33c3023d3e7836e92e42cfda184e |
--- a/third_party/WebKit/LayoutTests/http/tests/websocket/echo-path_wsh.py |
+++ b/third_party/grpc/src/php/bin/generate_proto_php.sh |
@@ -1,4 +1,6 @@ |
-# Copyright (C) 2013 Google Inc. All rights reserved. |
+#!/bin/sh |
+# 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 |
@@ -27,12 +29,12 @@ |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-from mod_pywebsocket import common, msgutil |
+set +e |
+cd $(dirname $0) |
+gen_code='../tests/generated_code' |
+interop='../tests/interop' |
-def web_socket_do_extra_handshake(request): |
- pass |
+protoc-gen-php -i $gen_code -o $gen_code $gen_code/math.proto |
- |
-def web_socket_transfer_data(request): |
- msgutil.send_message(request, request.uri) |
+protoc-gen-php -i $interop -o $interop $interop/test.proto |