Reland 'Traffic annotation auditor and unittest updated.'
The following changes were done:
 1- Auditor adds a list of OSes that actively use each annotation to
    annotations.xml, so that removing annotation from one OS and keeping
    it in another would not result in marking it deprecated.
 2- A script is added to tools/traffic_anntotation/scripts, to call all
    scripts that update a give file when annotations.xml is modified, or
    to run unittests that ensure these files are up to date.
 3- 'test-only' switch added to Auditor. When this switch is present,
    auditor only checks if annotations.xml is up to date and issues an
    error it if is not. When switch is not specified, annotations.xml
    may get updated and if so, the above mentioned script is called to
    update downstream files.
 4- Auditor will prevent use of deprecated unique ids.
 5- Unittest checks that annotations.xml is loadable and its content are
    valid.
 6- Unittest calls the script mentioned in (2) to test if downstream
    files are correctly updated.
Bug: 656607
Bug: 690323
Change-Id: I00acbddbe14eeee23317bb9990069e00558a5bb4
Reviewed-on: https://chromium-review.googlesource.com/645088
Commit-Queue: Ramin Halavati <rhalavati@chromium.org>
Reviewed-by:  Martin Šrámek <msramek@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#501206}
Reviewed-on: https://chromium-review.googlesource.com/663724
Cr-Commit-Position: refs/heads/master@{#501584}
Martin Šrámek <msramek@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#501206}
Reviewed-on: https://chromium-review.googlesource.com/663724
Cr-Commit-Position: refs/heads/master@{#501584}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment