Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / tools / perf / benchmarks / start_with_url.py
index ed726fc..c57e9dc 100644 (file)
@@ -1,25 +1,28 @@
 # Copyright 2014 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.
-from telemetry import test
 
 from measurements import startup
+import page_sets
+from telemetry import benchmark
 
 
-@test.Disabled('snowleopard') # crbug.com/336913
-class StartWithUrlCold(test.Test):
+@benchmark.Disabled('android', 'snowleopard') # crbug.com/336913
+class StartWithUrlCold(benchmark.Benchmark):
   """Measure time to start Chrome cold with startup URLs"""
   tag = 'cold'
   test = startup.StartWithUrl
-  page_set = 'page_sets/startup_pages.py'
+  page_set = page_sets.StartupPagesPageSet
   options = {'cold': True,
              'pageset_repeat': 5}
 
-class StartWithUrlWarm(test.Test):
+
+@benchmark.Enabled('has tabs')
+class StartWithUrlWarm(benchmark.Benchmark):
   """Measure time to start Chrome warm with startup URLs"""
   tag = 'warm'
   test = startup.StartWithUrl
-  page_set = 'page_sets/startup_pages.py'
+  page_set = page_sets.StartupPagesPageSet
   options = {'warm': True,
              'pageset_repeat': 10}