1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
build / skia_gold_common / unittest_utils.py [blame]
# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Utility methods for Skia Gold functionality unittests."""
import argparse
import collections
import typing
from typing import Optional
import dataclasses # Built-in, but pylint gives an ordering false positive.
@dataclasses.dataclass
class _SkiaGoldArgs():
local_pixel_tests: Optional[bool] = None
no_luci_auth: Optional[bool] = None
service_account: Optional[str] = None
code_review_system: Optional[str] = None
continuous_integration_system: Optional[str] = None
git_revision: Optional[str] = None
gerrit_issue: Optional[int] = None
gerrit_patchset: Optional[int] = None
buildbucket_id: Optional[int] = None
bypass_skia_gold_functionality: Optional[bool] = None
skia_gold_local_png_write_directory: Optional[str] = None
def createSkiaGoldArgs(*args, **kwargs):
return typing.cast(argparse.Namespace, _SkiaGoldArgs(*args, **kwargs))