Index: chrome/test/functional/media/media_playbacktime.py |
diff --git a/chrome/test/functional/media/media_playbacktime.py b/chrome/test/functional/media/media_playbacktime.py |
deleted file mode 100755 |
index e7c478c3f02d7b738deefc595263133f9892a974..0000000000000000000000000000000000000000 |
--- a/chrome/test/functional/media/media_playbacktime.py |
+++ /dev/null |
@@ -1,61 +0,0 @@ |
-#!/usr/bin/env python |
-# Copyright (c) 2011 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. |
- |
-"""Simple test for HTML5 media tag to measure playback time. |
- |
-This PyAuto powered script plays media (video or audio) files using the HTML5 |
-tag embedded in an HTML file (specified in the GetPlayerHTMLFileName() method) |
-and measures simple playback time. The parameters needed to run this test are |
-passed in the form of environment variables (such as the number of runs). |
-media_perf_runner.py is used for generating these variables |
-(PyAuto does not support direct parameters). |
-""" |
-import os |
-import time |
- |
-from media_test_base import MediaTestBase |
-from media_test_env_names import MediaTestEnvNames |
-import pyauto_media |
-from ui_perf_test_utils import UIPerfTestUtils |
- |
- |
-class MediaPlaybackTimeTest(MediaTestBase): |
- """Test class to record playback time.""" |
- |
- def testHTML5MediaTag(self): |
- """Test the HTML5 media tag.""" |
- MediaTestBase.ExecuteTest(self) |
- |
- def PostAllRunsProcess(self): |
- """A method to execute after all runs. |
- |
- This is to print out the playback time data. |
- """ |
- self.media_filename_nickname = os.getenv( |
- MediaTestEnvNames.MEDIA_FILENAME_NICKNAME_ENV_NAME, |
- self.media_filename) |
- # Print out playback time for each run. |
- trace = 't' |
- if self.reference_build: |
- trace += '_ref' |
- print UIPerfTestUtils.GetResultStringForPerfBot( |
- measurement='playback', modifier='', |
- trace=trace, values=self.times[1:], |
- units='sec') |
- |
- def PostEachRunProcess(self, unused_run_counter): |
- """A method to execute after each run. |
- |
- This is an overridden method to calculate and store playback time for each |
- run. |
- |
- Args: |
- unused_run_counter: counter for each run. |
- """ |
- if hasattr(self, 'start'): |
- self.times.append(time.time() - self.start) |
- |
-if __name__ == '__main__': |
- pyauto_media.Main() |