Are you sure the test you wrote is testing nsAutoConfig and not nsReadConfig?
nsReadConfig does not instantiate nsAutoConfig unless autoadmin.global_config_url exists and is not emtpy: https://codecov.io/gh/marco-c/gecko-dev/src/9ca76dcb7a5c61d33750e9718c02b11ba35c1032/extensions/pref/autoconfig/src/nsReadConfig.cpp#L205 https://dxr.mozilla.org/mozilla-central/rev/1c618b1a13662de7cec429f606367db3827b6dc7/extensions/pref/autoconfig/src/nsReadConfig.cpp#208 - Marco. Il 31/10/2017 10:38, Masatoshi Kimura ha scritto: > On 2017/10/31 19:22, Marco Castelluccio wrote: >> It is not covered by any automated test: >> https://codecov.io/gh/marco-c/gecko-dev/src/9ca76dcb7a5c61d33750e9718c02b11ba35c1032/extensions/pref/autoconfig/src/nsAutoConfig.cpp >> (this doesn't mean it isn't actually used ever, but it can be a clue). > Actually I wrote an automated test, although it is difficult for > coverage tools to find the usage: > https://bugzilla.mozilla.org/show_bug.cgi?id=1267567 > _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform