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

Unified Diff: third_party/grpc/test/distrib/python/distribtest.py

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/test/distrib/python/distribtest.py
diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/origin-test_wsh.py b/third_party/grpc/test/distrib/python/distribtest.py
similarity index 83%
copy from third_party/WebKit/LayoutTests/http/tests/websocket/origin-test_wsh.py
copy to third_party/grpc/test/distrib/python/distribtest.py
index 2c97ac6e4eb321cc261346d02d264b522cdbd87c..dc206881409ff9e5ef899a075e1c684ffecb9f00 100644
--- a/third_party/WebKit/LayoutTests/http/tests/websocket/origin-test_wsh.py
+++ b/third_party/grpc/test/distrib/python/distribtest.py
@@ -1,4 +1,5 @@
-# Copyright (C) 2009 Google Inc. All rights reserved.
+# Copyright 2016, 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 +27,10 @@
# (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 grpc.beta import implementations
-from mod_pywebsocket import msgutil
-
-
-def web_socket_do_extra_handshake(request):
- pass # Always accept.
-
-
-def web_socket_transfer_data(request):
- msgutil.send_message(request, request.ws_origin)
+# This code doesn't do much but makes sure the native extension is loaded
+# which is what we are testing here.
+channel = implementations.insecure_channel('localhost', 1000)
+del channel
+print 'Success!'
« no previous file with comments | « third_party/grpc/test/distrib/php/run_distrib_test.sh ('k') | third_party/grpc/test/distrib/python/run_distrib_test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698