Index: third_party/grpc/test/distrib/ruby/distribtest.rb |
diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/simple_wsh.py b/third_party/grpc/test/distrib/ruby/distribtest.rb |
old mode 100644 |
new mode 100755 |
similarity index 82% |
copy from third_party/WebKit/LayoutTests/http/tests/websocket/simple_wsh.py |
copy to third_party/grpc/test/distrib/ruby/distribtest.rb |
index 94fd512f54289eb5459148631dc9cd82430a5acb..3f656a89f3acea5c2b5cffaf1865d48ed97742d1 |
--- a/third_party/WebKit/LayoutTests/http/tests/websocket/simple_wsh.py |
+++ b/third_party/grpc/test/distrib/ruby/distribtest.rb |
@@ -1,4 +1,7 @@ |
-# Copyright (C) 2009 Google Inc. All rights reserved. |
+#!/usr/bin/env ruby |
+ |
+# 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 +29,11 @@ |
# (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 'grpc' |
-from mod_pywebsocket import msgutil |
- |
- |
-def web_socket_do_extra_handshake(request): |
- pass # Always accept. |
- |
+# This code doesn't do much but makes sure the native extension is loaded |
+# which is what we are testing here. |
+ch = GRPC::Core::Channel.new('localhost:1000', nil, :this_channel_is_insecure) |
+ch.destroy |
-def web_socket_transfer_data(request): |
- msgutil.send_message(request, 'Hello from Simple WSH.') |
+puts "Success!" |