DescriptionImprove unit testing of socket API (reland).
Add socket_api_unittest.cc, which calls Socket API functions directly.
This skips the whole browser_tests setup that is relatively slow and
expensive. The current test merely validates the socket-type argument
handling, but the next phase will simulate blocking socket operations.
Reland: I foolishly ran critical code inside a DCHECK, semi-thinking
that test code would run only in debug mode. This is hardly the case;
in fact, the ASAN bots run in release all the time.
BUG=112902
TEST=see above
Originally committed as 148856, then reverted in 148859. The only change
vs. http://codereview.chromium.org/10795052/ is that the DCHECK in
http://codereview.chromium.org/10795052/diff/27002/chrome/browser/extensions/test_extension_system.cc
is now a CHECK.
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|