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

Unified Diff: webrtc/tools/video_analysis_test.py

Issue 2809913002: return comparevideos stdout and fix missing device case (Closed)
Patch Set: address comments Created 3 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
« no previous file with comments | « webrtc/tools/video_analysis.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/tools/video_analysis_test.py
diff --git a/webrtc/tools/video_analysis_test.py b/webrtc/tools/video_analysis_test.py
index f4cd74b31cce40966538ba17eeeafe84d0b9ff26..483632bc4888d4c9ed919ce7970344bff31069e7 100755
--- a/webrtc/tools/video_analysis_test.py
+++ b/webrtc/tools/video_analysis_test.py
@@ -56,5 +56,14 @@ class RunVideoAnalysisTest(unittest.TestCase):
self.assertEqual(FindUsbPortForV4lDevices('video0', 'video1'), long_usb_ids)
+ def testFindUSBPortForV4lDevicesNoDevice(self):
+ noDeviceFound = ('')
+ V4lDevice = ('/sys/bus/usb/devices/usb1/1-1/driver/3-2/3-2.1:1.0/'
+ 'video4linux/video1')
+ self.setGlobPath(noDeviceFound, V4lDevice)
+ empty_list = []
+ self.assertEqual(FindUsbPortForV4lDevices('video0', 'video1'), empty_list)
+
+
if __name__ == "__main__":
unittest.main()
« no previous file with comments | « webrtc/tools/video_analysis.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698