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

Unified Diff: telemetry/telemetry/core/cros_interface_unittest.py

Issue 1864383002: Support for TakeScreenshot in cros_platform. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: missed return 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 side-by-side diff with in-line comments
Download patch
Index: telemetry/telemetry/core/cros_interface_unittest.py
diff --git a/telemetry/telemetry/core/cros_interface_unittest.py b/telemetry/telemetry/core/cros_interface_unittest.py
index 298e628d22470101d6bc7b25a804eacfd7c1793c..47480a4bcd9926b5a647bb1d66f0540a74fe488b 100644
--- a/telemetry/telemetry/core/cros_interface_unittest.py
+++ b/telemetry/telemetry/core/cros_interface_unittest.py
@@ -135,14 +135,14 @@ class CrOSInterfaceTest(unittest.TestCase):
self.assertTrue(remote_port_1 != remote_port_2)
@decorators.Enabled('cros-chrome')
- def testTakeScreenShot(self):
+ def testTakeScreenshotWithPrefix(self):
with self._GetCRI() as cri:
def _Cleanup():
cri.RmRF('/var/log/screenshots/test-prefix*')
_Cleanup()
- cri.TakeScreenShot('test-prefix')
+ self.assertTrue(cri.TakeScreenshotWithPrefix('test-prefix'))
self.assertTrue(cri.FileExistsOnDevice(
'/var/log/screenshots/test-prefix-0.png'))
_Cleanup()
« no previous file with comments | « telemetry/telemetry/core/cros_interface.py ('k') | telemetry/telemetry/internal/backends/chrome/cros_browser_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698