int main(int argc, char **argv) { NS_LogInit(); TestUnescape(); TestEnc(); TestCanonicalize(); TestCanonicalNum(); TestParseIPAddress(); TestHostname(); TestLongHostname(); printf("%d of %d tests passed\n", gPassedTests, gTotalTests); // Non-zero return status signals test failure to build system. return (gPassedTests != gTotalTests); }
int main(int argc, char **argv) { ScopedXPCOM xpcom("URLClassiferUtils"); TestUnescape(); TestEnc(); TestCanonicalize(); TestCanonicalNum(); TestParseIPAddress(); TestHostname(); TestLongHostname(); TestFragmentSet(); if (gPassedTests == gTotalTests) passed(__FILE__); printf("%d of %d tests passed\n", gPassedTests, gTotalTests); // Non-zero return status signals test failure to build system. return (gPassedTests != gTotalTests); }