Home | History | Annotate | Download | only in video_VideoDecodeMemoryUsage
      1 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 AUTHOR = 'owenlin (a] chromium.org, chromeos-video (a] google.com'
      6 NAME = 'video_VideoDecodeMemoryUsage.vp8'
      7 PURPOSE = 'Measure the memory usages of video playback'
      8 ATTRIBUTES = "suite:video"
      9 TIME = 'LONG'
     10 TEST_CATEGORY = 'Performance'
     11 TEST_CLASS = 'video'
     12 TEST_TYPE = 'client'
     13 
     14 DOC = """
     15 Measure the memory usage in different cases:
     16   1. Play a video in a loop and check the memory usage.
     17   2. Keep switching between two videos.
     18   3. Repeat opening a tab and play a video in the tab.
     19 """
     20 
     21 ASSETS_BASE = 'http://commondatastorage.googleapis.com/chromiumos-test-assets-public/'
     22 tp101_1080p = ASSETS_BASE + 'tp101/tp101-1920x1080-6b8c6ac748427505de02ab95eefb5043.webm'
     23 tp101_360p = ASSETS_BASE + 'tp101/tp101-640x360-9fe6db90b9bc0a6d54374b7c8ec20fd6.webm'
     24 
     25 testcases = [
     26     ['PlayVideo', [tp101_1080p]],
     27     ['ChangeVideoSource', [tp101_1080p, tp101_360p]],
     28     ['OpenTabPlayVideo', [tp101_1080p]],
     29 ]
     30 
     31 job.run_test('video_VideoDecodeMemoryUsage', testcases=testcases, tag='vp8')
     32