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

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: 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..412c43cbdd64e78d8a14b8757e26d5e6a9c139c3 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')
+ cri.TakeScreenshotWithPrefix('test-prefix')
self.assertTrue(cri.FileExistsOnDevice(
'/var/log/screenshots/test-prefix-0.png'))
_Cleanup()

Powered by Google App Engine
This is Rietveld 408576698