# Path: sockjs/transports/htmlfile.py
# PRELUDE1 = b"""
# <!doctype html>
# <html><head>
#   <meta http-equiv="X-UA-Compatible" content="IE=edge" />
#   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
# </head><body><h2>Don't panic!</h2>
#   <script>
#     document.domain = document.domain;
#     var c = parent."""
# PRELUDE2 = b""";
#     c.start();
#     function p(d) {c.message(d);};
#     window.onload = function() {c.stop();};
#   </script>"""
# class HTMLFileTransport(StreamingTransport):
#     async def send(self, text):
#     async def process(self):


from unittest import mock
from aiohttp import web
from aiohttp.test_utils import make_mocked_coro
from sockjs.transports import htmlfile
import pytest




@pytest.fixture
def make_transport(make_manager, make_request, make_handler, make_fut):
    def maker(method="GET", path="/", query_params={}):
        handler = make_handler(None)
        manager = make_manager(handler)
        request = make_request(method, path, query_params=query_params)
        request.app.freeze()
        session = manager.get("TestSessionHtmlFile", create=True, request=request)

# Path: sockjs/transports/htmlfile.py
# PRELUDE1 = b"""
# <!doctype html>
# <html><head>
#   <meta http-equiv="X-UA-Compatible" content="IE=edge" />
#   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
# </head><body><h2>Don't panic!</h2>
#   <script>
#     document.domain = document.domain;
#     var c = parent."""
# PRELUDE2 = b""";
#     c.start();
#     function p(d) {c.message(d);};
#     window.onload = function() {c.stop();};
#   </script>"""
# class HTMLFileTransport(StreamingTransport):
#     async def send(self, text):
#     async def process(self):


# Path: tests/test_transport_htmlfile.py
from unittest import mock
from aiohttp import web
from aiohttp.test_utils import make_mocked_coro
from sockjs.transports import htmlfile
import pytest





@pytest.fixture
def make_transport(make_manager, make_request, make_handler, make_fut):
    def maker(method="GET", path="/", query_params={}):
        handler = make_handler(None)
        manager = make_manager(handler)
        request = make_request(method, path, query_params=query_params)
        request.app.freeze()
        session = manager.get("TestSessionHtmlFile", create=True, request=request)

        return htmlfile.HTMLFileTransport(manager, session, request)