1- from typing import Dict
1+ from typing import Dict , Tuple
22import os
33import pytest
44from binascii import unhexlify
55
6+ from xcloud .protocol import srtp_crypto
7+
68@pytest .fixture (scope = 'session' )
79def test_data () -> Dict [str , bytes ]:
810 data = {}
@@ -38,4 +40,24 @@ def teredo_packet() -> bytes:
3840 return unhexlify (
3941 '6000000000003b1520010000338c24f41c38f3fdd2f3c93d20010000'
4042 '338c24f4043b30e3d2f3c93d01049eb8960803080000c0a889db0c02'
41- )
43+ )
44+
45+ @pytest .fixture (scope = 'session' )
46+ def session_id () -> str :
47+ return 'ED309CA5-F87C-439D-A429-63F417B552FA'
48+
49+ @pytest .fixture (scope = 'session' )
50+ def ice_credentials_client () -> Tuple [str , str ]:
51+ return ('m99KewV+44E=' , 'AneALie0L4P2tpvbh76nremwgQrT12/R3UYTG5VmUJ8=' )
52+
53+ @pytest .fixture (scope = 'session' )
54+ def ice_credentials_host () -> Tuple [str , str ]:
55+ return ('5yUsZtOzQ+w=' , 'bWpvx/cXTk3/IeadJHO4T19W/OZopsbn0MwTAZqZu8w=' )
56+
57+ @pytest .fixture (scope = 'session' )
58+ def srtp_key () -> str :
59+ return 'RdHzuLLVGuO1aHILIEVJ1UzR7RWVioepmpy+9SRf'
60+
61+ @pytest .fixture (scope = 'session' )
62+ def crypto_context (srtp_key : str ) -> srtp_crypto .MsSrtpCrypto :
63+ return srtp_crypto .MsSrtpCrypto (srtp_key )
0 commit comments