This file describes the scripts in tools/traffic_annotation/scripts
.
Runs traffic annotation tests on the changed files or all repository. The tests are run in error resilient mode. Requires a compiled build directory to run.
Runs tests to ensure traffic_annotation_auditor is performing as expected. Tests include:
Provides tools for annotation test scripts.
This script updates the Google sheet that presents all network traffic annotations.
Scans through a set of specified C++ files to detect existing traffic annotations in code. It uses regex expressions on source files.
Unit tests for extractor.py.
Updates the Chrome Browser Network Traffic Annotations document that presents all network traffic annotations specified within summary/grouping.xml
.
hidden="true"
attribute within a group to suppress the group and its nested senders and annotations from appearing in the document.hidden="true"
attribute within the annotations in grouping.xml
to suppress them from appearing in the document.grouping.xml
needn't be organized in alphabetical order, the script automatically places them in alphabetical order.Unit tests for update_annotations_doc.py.
Parses the grouping.xml
and annotations.tsv
files to provide update_annotations_doc.py
with the annotations and their relevant information, e.g. unique_id, data, trigger, etc. Also includes methods to parse the json object returned by the Google Docs API get()
method.
Unit tests for generator_utils.py.