Hi Anton,
For unittests, if you want to create a new separate executable I believe you will need to edit an appropriate BUILD.gn file and declare your own
test() target. The mailing list you're emailing is for a test that doesn't interact with C++ unittests often (we are part of the Web Tests branch of that original document I sent you :)), but looking at the definition for an
existing test() declaration (for net_unittests) it looks like you would need to:
1. define the list of source files needed (your specific foo_unittest.cc file)
2. define the list of deps (dependency) targets needed (probably the underlying components you are testing, as well as "//testing/gmock" and "//testing/gtest")
You would then run something like 'ninja your_target_name' (possibly after running 'gn gen'? I'm not sure!).
If you have more questions on this, I would probably suggest cc-ing
chromi...@chromium.org which is a (much) wider mailing list that will have folks who are familiar with setting up unittest targets in BUILD.gn files :).
Thanks,
Stephen