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

Unified Diff: chrome/test/functional/media/audio_latency_perf.py

Issue 222873002: Remove pyauto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 9 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 | « chrome/test/functional/media/README ('k') | chrome/test/functional/media/audio_playback_perf.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/media/audio_latency_perf.py
===================================================================
--- chrome/test/functional/media/audio_latency_perf.py (revision 261231)
+++ chrome/test/functional/media/audio_latency_perf.py (working copy)
@@ -1,41 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Audio latency performance test.
-
-Benchmark measuring how fast we can continuously repeat a short sound clip. In
-the ideal scenario we'd have zero latency processing script, seeking back to the
-beginning of the clip, and resuming audio playback.
-
-Performance is recorded as the average latency of N playbacks. I.e., if we play
-a clip 50 times and the ideal duration of all playbacks is 1000ms and the total
-duration is 1500ms, the recorded result is (1500ms - 1000ms) / 50 == 10ms.
-"""
-import os
-
-import pyauto_media
-import pyauto_utils
-import pyauto
-
-
-# HTML test path; relative to src/chrome/test/data.
-_TEST_HTML_PATH = os.path.join('media', 'html', 'audio_latency_perf.html')
-
-
-class AudioLatencyPerfTest(pyauto.PyUITest):
- """PyAuto test container. See file doc string for more information."""
-
- def testAudioLatency(self):
- """Launches HTML test which runs the audio latency test."""
- self.NavigateToURL(self.GetFileURLForDataPath(_TEST_HTML_PATH))
-
- # Block until the test finishes and notifies us.
- self.assertTrue(self.ExecuteJavascript('startTest();'))
- latency = float(self.GetDOMValue('averageLatency'))
- pyauto_utils.PrintPerfResult('audio_latency', 'latency', latency, 'ms')
-
-
-if __name__ == '__main__':
- pyauto_media.Main()
« no previous file with comments | « chrome/test/functional/media/README ('k') | chrome/test/functional/media/audio_playback_perf.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698