| Index: content/test/gpu/gpu_tests/pixel_integration_test.py
|
| diff --git a/content/test/gpu/gpu_tests/pixel_integration_test.py b/content/test/gpu/gpu_tests/pixel_integration_test.py
|
| index cbeca3d32596231e7d7749908a4b25ab743c194c..92fdba6f4a437cb9c2ed89cdd6a6a3ee81d00dd1 100644
|
| --- a/content/test/gpu/gpu_tests/pixel_integration_test.py
|
| +++ b/content/test/gpu/gpu_tests/pixel_integration_test.py
|
| @@ -11,6 +11,7 @@ from gpu_tests import cloud_storage_integration_test_base
|
| from gpu_tests import path_util
|
| from gpu_tests import pixel_expectations
|
| from gpu_tests import pixel_test_pages
|
| +from gpu_tests import color_profile_manager
|
|
|
| from py_utils import cloud_storage
|
| from telemetry.util import image_util
|
| @@ -55,17 +56,25 @@ class PixelIntegrationTest(
|
|
|
| @classmethod
|
| def SetUpProcess(cls):
|
| + cls._color_profile_manager = color_profile_manager.ColorProfileManager()
|
| + cls._color_profile_manager.ForceSRGB()
|
| super(PixelIntegrationTest, cls).SetUpProcess()
|
| cls.CustomizeBrowserArgs(cls._AddDefaultArgs([]))
|
| cls.StartBrowser()
|
| cls.SetStaticServerDirs(test_data_dirs)
|
|
|
| + @classmethod
|
| + def TearDownProcess(cls):
|
| + super(PixelIntegrationTest, cls).TearDownProcess()
|
| + cls._color_profile_manager.Restore()
|
| +
|
| @staticmethod
|
| def _AddDefaultArgs(browser_args):
|
| if not browser_args:
|
| browser_args = []
|
| # All tests receive the following options.
|
| return [
|
| + '--force-color-profile=srgb',
|
| '--enable-gpu-benchmarking',
|
| '--test-type=gpu'] + browser_args
|
|
|
|
|