| Index: third_party/grpc/tools/run_tests/sanity/check_submodules.sh
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/close_wsh.py b/third_party/grpc/tools/run_tests/sanity/check_submodules.sh
|
| old mode 100644
|
| new mode 100755
|
| similarity index 63%
|
| copy from third_party/WebKit/LayoutTests/http/tests/websocket/close_wsh.py
|
| copy to third_party/grpc/tools/run_tests/sanity/check_submodules.sh
|
| index 1b02d66267e294ce83977dac64f075981705647c..3c6dbb9ea1f1a18f51b33c8d889c901496d12153
|
| --- a/third_party/WebKit/LayoutTests/http/tests/websocket/close_wsh.py
|
| +++ b/third_party/grpc/tools/run_tests/sanity/check_submodules.sh
|
| @@ -1,4 +1,6 @@
|
| -# Copyright 2011, Google Inc.
|
| +#!/bin/sh
|
| +
|
| +# Copyright 2015-2016, Google Inc.
|
| # All rights reserved.
|
| #
|
| # Redistribution and use in source and binary forms, with or without
|
| @@ -28,26 +30,26 @@
|
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
| -import logging
|
| -_GOODBYE_MESSAGE = u'Goodbye'
|
| +set -e
|
| +
|
| +export TEST=true
|
|
|
| +cd `dirname $0`/../../..
|
|
|
| -def web_socket_do_extra_handshake(request):
|
| - pass # Always accept.
|
| +submodules=`mktemp /tmp/submXXXXXX`
|
| +want_submodules=`mktemp /tmp/submXXXXXX`
|
|
|
| +git submodule | awk '{ print $1 }' | sort > $submodules
|
| +cat << EOF | awk '{ print $1 }' | sort > $want_submodules
|
| + 9f897b25800d2f54f5c442ef01a60721aeca6d87 third_party/boringssl (version_for_cocoapods_1.0-67-g9f897b2)
|
| + 05b155ff59114735ec8cd089f669c4c3d8f59029 third_party/gflags (v2.1.0-45-g05b155f)
|
| + c99458533a9b4c743ed51537e25989ea55944908 third_party/googletest (release-1.7.0)
|
| + f8ac463766281625ad710900479130c7fcb4d63b third_party/nanopb (nanopb-0.3.4-29-gf8ac463)
|
| + d5fb408ddc281ffcadeb08699e65bb694656d0bd third_party/protobuf (v3.0.0-beta-2)
|
| + 50893291621658f355bc5b4d450a8d06a563053d third_party/zlib (v1.2.8)
|
| +EOF
|
|
|
| -def web_socket_transfer_data(request):
|
| - while True:
|
| - line = request.ws_stream.receive_message()
|
| - if line is None:
|
| - return
|
| - if isinstance(line, unicode):
|
| - request.ws_stream.send_message(line, binary=False)
|
| - if line == _GOODBYE_MESSAGE:
|
| - return
|
| - else:
|
| - request.ws_stream.send_message(line, binary=True)
|
| +diff -u $submodules $want_submodules
|
|
|
| +rm $submodules $want_submodules
|
|
|
| -def web_socket_passive_closing_handshake(request):
|
| - return request.ws_close_code, request.ws_close_reason
|
|
|