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

Side by Side Diff: content/test/gpu/page_sets/gpu_process_tests.py

Issue 1977953002: Prevent skip_gpu_process from running on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing the browser type detection to include webview. Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « content/test/gpu/gpu_tests/gpu_process.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 import sys 4 import sys
5 from telemetry.story import story_set as story_set_module 5 from telemetry.story import story_set as story_set_module
6 from telemetry.page import page_test 6 from telemetry.page import page_test
7 7
8 from gpu_tests import gpu_test_base 8 from gpu_tests import gpu_test_base
9 9
10 class GpuProcessSharedPageState(gpu_test_base.GpuSharedPageState): 10 class GpuProcessSharedPageState(gpu_test_base.GpuSharedPageState):
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 else: 495 else:
496 result = result and status == 'unavailable_software' 496 result = result and status == 'unavailable_software'
497 if not result: 497 if not result:
498 raise page_test.Failure('WebGL readback setup failed: %s' \ 498 raise page_test.Failure('WebGL readback setup failed: %s' \
499 % feature_status_list) 499 % feature_status_list)
500 500
501 class GpuProcessTestsStorySet(story_set_module.StorySet): 501 class GpuProcessTestsStorySet(story_set_module.StorySet):
502 502
503 """ Tests that accelerated content triggers the creation of a GPU process """ 503 """ Tests that accelerated content triggers the creation of a GPU process """
504 504
505 def __init__(self, expectations): 505 def __init__(self, expectations, is_platform_android):
506 super(GpuProcessTestsStorySet, self).__init__( 506 super(GpuProcessTestsStorySet, self).__init__(
507 serving_dirs=set(['../../../../content/test/data'])) 507 serving_dirs=set(['../../../../content/test/data']))
508 508
509 urls_and_names_list = [ 509 urls_and_names_list = [
510 ('file://../../data/gpu/functional_canvas_demo.html', 510 ('file://../../data/gpu/functional_canvas_demo.html',
511 'GpuProcess.canvas2d'), 511 'GpuProcess.canvas2d'),
512 ('file://../../data/gpu/functional_3d_css.html', 512 ('file://../../data/gpu/functional_3d_css.html',
513 'GpuProcess.css3d'), 513 'GpuProcess.css3d'),
514 ('file://../../data/gpu/functional_webgl.html', 514 ('file://../../data/gpu/functional_webgl.html',
515 'GpuProcess.webgl') 515 'GpuProcess.webgl')
516 ] 516 ]
517 517
518 for url, name in urls_and_names_list: 518 for url, name in urls_and_names_list:
519 self.AddStory(GpuProcessTestsPage(url, name, self, expectations)) 519 self.AddStory(GpuProcessTestsPage(url, name, self, expectations))
520 520
521 self.AddStory(FunctionalVideoPage(self, expectations)) 521 self.AddStory(FunctionalVideoPage(self, expectations))
522 self.AddStory(GpuInfoCompletePage(self, expectations)) 522 self.AddStory(GpuInfoCompletePage(self, expectations))
523 self.AddStory(NoGpuProcessPage(self, expectations)) 523 self.AddStory(NoGpuProcessPage(self, expectations))
524 self.AddStory(SoftwareGpuProcessPage(self, expectations)) 524 self.AddStory(SoftwareGpuProcessPage(self, expectations))
525 #TODO(cblume): no good way to skip this test. crbug.com/611629 525 if not is_platform_android:
526 #self.AddStory(SkipGpuProcessPage(self, expectations)) 526 self.AddStory(SkipGpuProcessPage(self, expectations))
527 self.AddStory(DriverBugWorkaroundsInGpuProcessPage(self, expectations)) 527 self.AddStory(DriverBugWorkaroundsInGpuProcessPage(self, expectations))
528 self.AddStory(IdentifyActiveGpuPage1(self, expectations)) 528 self.AddStory(IdentifyActiveGpuPage1(self, expectations))
529 self.AddStory(IdentifyActiveGpuPage2(self, expectations)) 529 self.AddStory(IdentifyActiveGpuPage2(self, expectations))
530 self.AddStory(IdentifyActiveGpuPage3(self, expectations)) 530 self.AddStory(IdentifyActiveGpuPage3(self, expectations))
531 self.AddStory(IdentifyActiveGpuPage4(self, expectations)) 531 self.AddStory(IdentifyActiveGpuPage4(self, expectations))
532 self.AddStory(ReadbackWebGLGpuProcessPage(self, expectations)) 532 self.AddStory(ReadbackWebGLGpuProcessPage(self, expectations))
533 self.AddStory(DriverBugWorkaroundsUponGLRendererPage(self, expectations)) 533 self.AddStory(DriverBugWorkaroundsUponGLRendererPage(self, expectations))
534 534
535 @property 535 @property
536 def allow_mixed_story_states(self): 536 def allow_mixed_story_states(self):
537 # Return True here in order to be able to run pages with different browser 537 # Return True here in order to be able to run pages with different browser
538 # command line arguments. 538 # command line arguments.
539 return True 539 return True
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/gpu_process.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698