Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Issue 10835038: Improve unit testing of socket API (reland). (Closed)

Created:
8 years, 4 months ago by miket_OOO
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Improve 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -2 lines) Patch
M chrome/browser/extensions/api/socket/socket_api.cc View 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/socket/socket_api_unittest.cc View 1 chunk +83 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_system.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_system.cc View 3 chunks +15 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
miket_OOO
asargent for entire CL, darin for chrome_tests.gypi OWNERS.
8 years, 4 months ago (2012-07-30 17:17:49 UTC) #1
Mihai Parparita -not on Chrome
On Mon, Jul 30, 2012 at 10:17 AM, <miket@chromium.org> wrote: > Reland: I foolishly ran ...
8 years, 4 months ago (2012-07-30 17:36:16 UTC) #2
miket_OOO
> There are also release tryservers (not part of the default set), like > win_rel, ...
8 years, 4 months ago (2012-07-30 17:48:39 UTC) #3
miket_OOO
Reviewers: this CL just made it past the unit_tests step on http://build.chromium.org/p/tryserver.chromium/builders/linux_asan/builds/491, and I confirmed ...
8 years, 4 months ago (2012-07-30 17:59:11 UTC) #4
miket_OOO
On 2012/07/30 17:59:11, miket wrote: > Reviewers: this CL just made it past the unit_tests ...
8 years, 4 months ago (2012-07-30 18:05:39 UTC) #5
darin (slow to review)
8 years, 4 months ago (2012-07-30 19:33:09 UTC) #6
LGTM again

Powered by Google App Engine
This is Rietveld 408576698