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

Unified Diff: tools/telemetry/telemetry/core/tab_unittest.py

Issue 379443002: Change ownership of video file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to head Created 6 years, 5 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: tools/telemetry/telemetry/core/tab_unittest.py
diff --git a/tools/telemetry/telemetry/core/tab_unittest.py b/tools/telemetry/telemetry/core/tab_unittest.py
index 53db4339302bfd008a9da5cc878a688b05014c53..7a575b7b3c9e336a0aa03923b97b3e118989dee2 100644
--- a/tools/telemetry/telemetry/core/tab_unittest.py
+++ b/tools/telemetry/telemetry/core/tab_unittest.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import logging
+import tempfile
from telemetry import benchmark
from telemetry.core import bitmap
@@ -28,7 +29,7 @@ class FakePlatform(object):
def StopVideoCapture(self):
self._is_video_capture_running = False
- return video.Video(None)
+ return video.Video(tempfile.NamedTemporaryFile())
def SetFullPerformanceModeEnabled(self, enabled):
pass
« no previous file with comments | « tools/telemetry/telemetry/core/platform/android_platform_backend.py ('k') | tools/telemetry/telemetry/core/video.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698