1# Copyright 2014 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import logging 6 7from telemetry.internal.platform import posix_platform_backend 8 9#TODO(baxley): Put in real values. 10class IosPlatformBackend(posix_platform_backend.PosixPlatformBackend): 11 def __init__(self): 12 super(IosPlatformBackend, self).__init__() 13 14 def GetOSName(self): 15 # TODO(baxley): Get value from ideviceinfo. 16 logging.warn('Not implemented') 17 return 'ios' 18 19 def GetOSVersionName(self): 20 # TODO(baxley): Get value from ideviceinfo. 21 logging.warn('Not implemented') 22 return '7.1' 23 24 def SetFullPerformanceModeEnabled(self, enabled): 25 logging.warn('Not implemented') 26 return 27 28 def FlushDnsCache(self): 29 logging.warn('Not implemented') 30 return 31 32 def CanMonitorThermalThrottling(self): 33 logging.warn('Not implemented') 34 return False 35 36 def CanMonitorPower(self): 37 logging.warn('Not implemented') 38 return False 39 40 def StartMonitoringPower(self, browser): 41 raise NotImplementedError() 42 43 def StopMonitoringPower(self): 44 raise NotImplementedError() 45 46 def FlushEntireSystemCache(self): 47 raise NotImplementedError() 48 49 def HasBeenThermallyThrottled(self): 50 raise NotImplementedError() 51 52 def StopVideoCapture(self): 53 raise NotImplementedError() 54 55 def IsThermallyThrottled(self): 56 raise NotImplementedError() 57 58 def GetSystemTotalPhysicalMemory(self): 59 raise NotImplementedError() 60 61 def InstallApplication(self, application): 62 raise NotImplementedError() 63