| Index: third_party/grpc/src/ruby/spec/completion_queue_spec.rb
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/handshake-error_wsh.py b/third_party/grpc/src/ruby/spec/completion_queue_spec.rb
|
| similarity index 81%
|
| copy from third_party/WebKit/LayoutTests/http/tests/websocket/handshake-error_wsh.py
|
| copy to third_party/grpc/src/ruby/spec/completion_queue_spec.rb
|
| index c851fa62611766a598fc7158655a06156c6a221c..886a7f263ba21058f1b6c8e0fcc51bcb9158d331 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/websocket/handshake-error_wsh.py
|
| +++ b/third_party/grpc/src/ruby/spec/completion_queue_spec.rb
|
| @@ -1,4 +1,5 @@
|
| -# Copyright (C) 2009 Google Inc. All rights reserved.
|
| +# 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 +27,16 @@
|
| # (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
|
| +describe GRPC::Core::CompletionQueue do
|
| + before(:example) do
|
| + @cq = GRPC::Core::CompletionQueue.new
|
| + end
|
|
|
| -
|
| -def web_socket_do_extra_handshake(request):
|
| - request.connection.write('ThisWillCauseHandshakeError\r\n')
|
| -
|
| -
|
| -def web_socket_transfer_data(request):
|
| - msgutil.send_message(request, 'Hello from Handshake Error WSH.')
|
| + describe '#new' do
|
| + it 'is constructed successufully' do
|
| + expect { GRPC::Core::CompletionQueue.new }.not_to raise_error
|
| + end
|
| + end
|
| +end
|
|
|