From bc7f9bfff573e59be4acee8f285e86550da039ef Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Tue, 5 Nov 2024 12:53:50 +0000 Subject: [PATCH] Add webpagereplay fetch_config Bug: 41496458 Change-Id: I0847945a647e2959b4b87d838c01b3f491027707 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5932647 Reviewed-by: Gavin Mak Reviewed-by: Ian Struiksma Commit-Queue: Camillo Bruni --- fetch_configs/webpagereplay.py | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 fetch_configs/webpagereplay.py diff --git a/fetch_configs/webpagereplay.py b/fetch_configs/webpagereplay.py new file mode 100644 index 0000000000..5a1e9bd89f --- /dev/null +++ b/fetch_configs/webpagereplay.py @@ -0,0 +1,43 @@ +# Copyright 2024 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. + +import sys + +import config_util # pylint: disable=import-error + + +# This class doesn't need an __init__ method, so we disable the warning +# pylint: disable=no-init +class WebPageReplay(config_util.Config): + """Basic Config class for WebPageReplay.""" + + @staticmethod + def fetch_spec(props): + url = 'https://chromium.googlesource.com/webpagereplay.git' + solution = { + 'name': 'webpagereplay', + 'url': url, + 'deps_file': 'DEPS', + 'managed': False, + 'custom_deps': {}, + } + spec = { + 'solutions': [solution], + } + return { + 'type': 'gclient_git', + 'gclient_git_spec': spec, + } + + @staticmethod + def expected_root(_props): + return 'webpagereplay' + + +def main(argv=None): + return WebPageReplay().handle_args(argv) + + +if __name__ == '__main__': + sys.exit(main(sys.argv))