Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import logging | 5 import logging |
| 6 | 6 |
| 7 from telemetry import decorators | 7 from telemetry import decorators |
| 8 from telemetry.core import cros_interface | 8 from telemetry.core import cros_interface |
| 9 from telemetry.core import platform | 9 from telemetry.core import platform |
| 10 from telemetry.core import util | 10 from telemetry.core import util |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 160 self._powermonitor.StartMonitoringPower(browser) | 160 self._powermonitor.StartMonitoringPower(browser) |
| 161 | 161 |
| 162 def StopMonitoringPower(self): | 162 def StopMonitoringPower(self): |
| 163 return self._powermonitor.StopMonitoringPower() | 163 return self._powermonitor.StopMonitoringPower() |
| 164 | 164 |
| 165 def PathExists(self, path, timeout=None, retries=None): | 165 def PathExists(self, path, timeout=None, retries=None): |
| 166 if timeout or retries: | 166 if timeout or retries: |
| 167 logging.warning( | 167 logging.warning( |
| 168 'PathExists: params timeout and retries are not support on CrOS.') | 168 'PathExists: params timeout and retries are not support on CrOS.') |
| 169 return self._cri.FileExistsOnDevice(path) | 169 return self._cri.FileExistsOnDevice(path) |
| 170 | |
| 171 def CanTakeScreenshot(self): | |
| 172 return True | |
| 173 | |
| 174 def TakeScreenshot(self, file_path): | |
| 175 self._cri.TakeScreenshot(file_path) | |
|
nednguyen
2016/04/06 23:20:19
this return True if it's believed the attempt succ
| |
| OLD | NEW |