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

Unified Diff: third_party/grpc/examples/python/route_guide/run_codegen.sh

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/examples/python/route_guide/run_codegen.sh
diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/echo-path_wsh.py b/third_party/grpc/examples/python/route_guide/run_codegen.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/examples/python/route_guide/run_codegen.sh
index 6072a28e6c821bdf301d4c1cf7e2c50c2cebdeef..d9d56c2d7ab2a7a98afeeafd4987adf3c8cf2dff
--- a/third_party/WebKit/LayoutTests/http/tests/websocket/echo-path_wsh.py
+++ b/third_party/grpc/examples/python/route_guide/run_codegen.sh
@@ -1,4 +1,6 @@
-# Copyright (C) 2013 Google Inc. All rights reserved.
+#!/bin/bash
+# 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 +28,5 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-from mod_pywebsocket import common, msgutil
-
-
-def web_socket_do_extra_handshake(request):
- pass
-
-
-def web_socket_transfer_data(request):
- msgutil.send_message(request, request.uri)
+# Runs the protoc with gRPC plugin to generate protocol messages and gRPC stubs.
+protoc -I ../../protos --python_out=. --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_python_plugin` ../../protos/route_guide.proto
« no previous file with comments | « third_party/grpc/examples/python/route_guide/route_guide_server.py ('k') | third_party/grpc/examples/ruby/.gitignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698