Index: third_party/grpc/templates/vsprojects/build_test_protos.sh |
diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/handshake-error_wsh.py b/third_party/grpc/templates/vsprojects/build_test_protos.sh |
old mode 100644 |
new mode 100755 |
similarity index 81% |
copy from third_party/WebKit/LayoutTests/http/tests/websocket/handshake-error_wsh.py |
copy to third_party/grpc/templates/vsprojects/build_test_protos.sh |
index c851fa62611766a598fc7158655a06156c6a221c..54edd3699afe23923ff03f922c2cabb6c5f79cad |
--- a/third_party/WebKit/LayoutTests/http/tests/websocket/handshake-error_wsh.py |
+++ b/third_party/grpc/templates/vsprojects/build_test_protos.sh |
@@ -1,4 +1,7 @@ |
-# Copyright (C) 2009 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 |
@@ -26,13 +29,14 @@ |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+GRPC_CPP_PLUGIN_PATH=`which grpc_cpp_plugin` |
-from mod_pywebsocket import msgutil |
- |
- |
-def web_socket_do_extra_handshake(request): |
- request.connection.write('ThisWillCauseHandshakeError\r\n') |
- |
+cd `dirname $0`/../.. |
-def web_socket_transfer_data(request): |
- msgutil.send_message(request, 'Hello from Handshake Error WSH.') |
+find ./test -type f -name "*.proto" | |
+while read p ; do |
+ echo "processing $p" |
+ DIR=$(dirname "$p") |
+ protoc $p --grpc_out=./ --plugin=protoc-gen-grpc=$GRPC_CPP_PLUGIN_PATH |
+ protoc $p --cpp_out=./ |
+done |