Exemple #1
0
    def __init__(self, loop, state=None):
        FakeAirPlayDevice.__init__(self)
        MrpServerAuth.__init__(self, self, DEVICE_NAME)
        self.state = state or FakeDeviceState()
        self.loop = loop
        self.app.on_startup.append(self.start)
        self.has_authenticated = False

        self.server = None
        self.buffer = b""
        self.chacha = None
        self.transport = None
Exemple #2
0
    def __init__(self, testcase, loop):
        FakeAirPlayDevice.__init__(self, testcase)
        MrpServerAuth.__init__(self, self, DEVICE_NAME)
        self.loop = loop
        self.app.on_startup.append(self.start)
        self.outstanding_keypresses = set()  # Pressed but not released
        self.last_button_pressed = None
        self.connection_state = None
        self.states = {}
        self.active_player = None
        self.has_authenticated = False

        self.server = None
        self.buffer = b''
        self.chacha = None
        self.transport = None
Exemple #3
0
 async def get_application(self, loop=None):
     self.fake_device = FakeAirPlayDevice(self)
     self.usecase = AirPlayUseCases(self.fake_device)
     return self.fake_device.app
Exemple #4
0
 async def get_application(self, loop=None):
     self.fake_atv = FakeAirPlayDevice(self)
     return self.fake_atv.app
Exemple #5
0
 async def get_application(self, loop=None):
     self.fake_atv = FakeAirPlayDevice()
     self.usecase = AirPlayUseCases(self.fake_atv)
     return self.fake_atv.app