tools/traffic_annotation/scripts/README.md
This file describes the scripts in tools/traffic_annotation/scripts.
This is the python implementation of the Traffic Annotation Auditor, and it adds new annotations to the grouping xml file. After the grouping xml file is generated, we'll decide if the new annotation should be in the report by adding hidden="false". i.e. you can call it with the same command-line arguments and it should give similar output.
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 auditor/auditor.py 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.