GN: Fix ordering of public and all dep configs.

Previously GN iterated through the deps and added the all_dependent followed by the public configs for each target.

But the ordering is documented to be all of the all_dependent_configs, followed by all of the public_configs. This patch brings the ordering in line with the documentation and adds a test.

BUG=474000

Review-Url: https://codereview.chromium.org/2140363002
Cr-Original-Commit-Position: refs/heads/master@{#405257}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 47e6f464f5f85e3ad0b4bc21b570735e2fcfba7d
3 files changed
tree: 0617a2d7a5380e4c11aab83808a1ca00c782b2f2
  1. tools/