Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(541)

Side by Side Diff: telemetry/telemetry/internal/platform/cros_platform_backend.py

Issue 1864383002: Support for TakeScreenshot in cros_platform. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « telemetry/telemetry/internal/backends/chrome/cros_browser_backend.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « telemetry/telemetry/internal/backends/chrome/cros_browser_backend.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698