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

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

Created:
8 years, 5 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. 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. BUG=112902 TEST=see above Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148856 (then reverted) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149044

Patch Set 1 #

Total comments: 1

Patch Set 2 : asargent review changes & fix tricky IO thread issues. #

Patch Set 3 : Fix tricky IO thread issues in a way that doesn't kill 50 other tests. #

Patch Set 4 : Fixed build break on release builds. #

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 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/socket/socket_api_unittest.cc View 1 2 1 chunk +83 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_system.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_system.cc View 1 2 3 3 chunks +15 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
miket_OOO
8 years, 5 months ago (2012-07-20 22:00:42 UTC) #1
asargent_no_longer_on_chrome
LGTM http://codereview.chromium.org/10795052/diff/1/chrome/browser/extensions/api/socket/socket_api.cc File chrome/browser/extensions/api/socket/socket_api.cc (right): http://codereview.chromium.org/10795052/diff/1/chrome/browser/extensions/api/socket/socket_api.cc#newcode46 chrome/browser/extensions/api/socket/socket_api.cc:46: "It is likely you are testing this API ...
8 years, 5 months ago (2012-07-23 16:57:57 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/10795052/4001
8 years, 5 months ago (2012-07-23 19:12:46 UTC) #3
commit-bot: I haz the power
Try job failure for 10795052-4001 (retry) on linux_rel for step "unit_tests". It's a second try, ...
8 years, 5 months ago (2012-07-23 20:01:38 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/10795052/4001
8 years, 5 months ago (2012-07-23 20:55:04 UTC) #5
commit-bot: I haz the power
Try job failure for 10795052-4001 (retry) on linux_rel for step "unit_tests". It's a second try, ...
8 years, 5 months ago (2012-07-23 21:40:24 UTC) #6
miket_OOO
OK, Antony, this is going to need a re-review for the most recent patch set. ...
8 years, 5 months ago (2012-07-26 23:46:59 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/10795052/27002
8 years, 4 months ago (2012-07-27 20:21:48 UTC) #8
commit-bot: I haz the power
Presubmit check for 10795052-27002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-07-27 20:21:51 UTC) #9
miket_OOO
(resending with sky for OWNERS)
8 years, 4 months ago (2012-07-27 20:56:26 UTC) #10
darin (slow to review)
LGTM for gypi
8 years, 4 months ago (2012-07-27 22:49:42 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/10795052/27002
8 years, 4 months ago (2012-07-27 22:52:56 UTC) #12
commit-bot: I haz the power
Change committed as 148856
8 years, 4 months ago (2012-07-28 00:14:17 UTC) #13
miket_OOO
On 2012/07/28 00:14:17, I haz the power (commit-bot) wrote: > Change committed as 148856 Reverted, ...
8 years, 4 months ago (2012-07-30 18:05:04 UTC) #14
asargent_no_longer_on_chrome
lgtm
8 years, 4 months ago (2012-07-30 20:01:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miket@chromium.org/10795052/20004
8 years, 4 months ago (2012-07-30 20:13:40 UTC) #16
commit-bot: I haz the power
8 years, 4 months ago (2012-07-30 22:08:03 UTC) #17
Change committed as 149044

Powered by Google App Engine
This is Rietveld 408576698