| Index: third_party/grpc/src/python/grpcio/grpc/framework/interfaces/links/utilities.py
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/echo-path_wsh.py b/third_party/grpc/src/python/grpcio/grpc/framework/interfaces/links/utilities.py
|
| similarity index 82%
|
| copy from third_party/WebKit/LayoutTests/http/tests/websocket/echo-path_wsh.py
|
| copy to third_party/grpc/src/python/grpcio/grpc/framework/interfaces/links/utilities.py
|
| index 6072a28e6c821bdf301d4c1cf7e2c50c2cebdeef..6e4fd76d9325263b5fc7e81d257cbb20a140347c 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/websocket/echo-path_wsh.py
|
| +++ b/third_party/grpc/src/python/grpcio/grpc/framework/interfaces/links/utilities.py
|
| @@ -1,4 +1,5 @@
|
| -# Copyright (C) 2013 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,18 @@
|
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| +"""Utilities provided as part of the links interface."""
|
|
|
| -from mod_pywebsocket import common, msgutil
|
| +from grpc.framework.interfaces.links import links
|
|
|
|
|
| -def web_socket_do_extra_handshake(request):
|
| +class _NullLink(links.Link):
|
| + """A do-nothing links.Link."""
|
| +
|
| + def accept_ticket(self, ticket):
|
| pass
|
|
|
| + def join_link(self, link):
|
| + pass
|
|
|
| -def web_socket_transfer_data(request):
|
| - msgutil.send_message(request, request.uri)
|
| +NULL_LINK = _NullLink()
|
|
|