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

Issue 212683006: HttpServer: allows sending raw response data for nontypical responses. (Closed)

Created:
6 years, 9 months ago by gunsch
Modified:
6 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

HttpServer: allows sending raw response data for nontypical responses. BUG=347770 R=rsleevi@chromium.org,lcwu@chromium.org,byungchul@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263948

Patch Set 1 #

Patch Set 2 : Brief docs #

Patch Set 3 : Unit tests involving response-checking. #

Total comments: 11

Patch Set 4 : Review comments, even more tests. #

Patch Set 5 : Replaces request+connection with std::pair. #

Total comments: 8

Patch Set 6 : rsleevi review fixes #

Total comments: 1

Patch Set 7 : Address rsleevi comments #

Total comments: 6

Patch Set 8 : Unit test robustness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -19 lines) Patch
M net/server/http_server.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M net/server/http_server.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M net/server/http_server_unittest.cc View 1 2 3 4 5 6 7 13 chunks +101 lines, -19 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
gunsch
6 years, 9 months ago (2014-03-26 16:23:57 UTC) #1
Ryan Sleevi
There need to be tests. Both your CL and your bug do not explain what ...
6 years, 9 months ago (2014-03-26 19:10:38 UTC) #2
gunsch
On 2014/03/26 19:10:38, Ryan Sleevi wrote: > There need to be tests. > > Both ...
6 years, 9 months ago (2014-03-26 19:40:24 UTC) #3
gunsch
On 2014/03/26 19:40:24, gunsch wrote: > On 2014/03/26 19:10:38, Ryan Sleevi wrote: > > There ...
6 years, 9 months ago (2014-03-26 23:43:18 UTC) #4
mef
https://codereview.chromium.org/212683006/diff/40001/net/server/http_server_unittest.cc File net/server/http_server_unittest.cc (right): https://codereview.chromium.org/212683006/diff/40001/net/server/http_server_unittest.cc#newcode41 net/server/http_server_unittest.cc:41: int kMaxExpectedResponseLength = 2048; const https://codereview.chromium.org/212683006/diff/40001/net/server/http_server_unittest.cc#newcode124 net/server/http_server_unittest.cc:124: int result ...
6 years, 9 months ago (2014-03-27 15:03:45 UTC) #5
gunsch
https://codereview.chromium.org/212683006/diff/40001/net/server/http_server_unittest.cc File net/server/http_server_unittest.cc (right): https://codereview.chromium.org/212683006/diff/40001/net/server/http_server_unittest.cc#newcode41 net/server/http_server_unittest.cc:41: int kMaxExpectedResponseLength = 2048; On 2014/03/27 15:03:45, mef wrote: ...
6 years, 9 months ago (2014-03-27 15:52:39 UTC) #6
gunsch
https://codereview.chromium.org/212683006/diff/40001/net/server/http_server_unittest.cc File net/server/http_server_unittest.cc (right): https://codereview.chromium.org/212683006/diff/40001/net/server/http_server_unittest.cc#newcode318 net/server/http_server_unittest.cc:318: ASSERT_TRUE(client.Read(&response)); On 2014/03/27 15:52:39, gunsch wrote: > On 2014/03/27 ...
6 years, 9 months ago (2014-03-27 18:40:31 UTC) #7
Ryan Sleevi
https://codereview.chromium.org/212683006/diff/40001/net/server/http_server_unittest.cc File net/server/http_server_unittest.cc (right): https://codereview.chromium.org/212683006/diff/40001/net/server/http_server_unittest.cc#newcode137 net/server/http_server_unittest.cc:137: base::Closure run_loop_quit_func_; You shouldn't need this separate RunLoop helper. ...
6 years, 9 months ago (2014-03-27 20:59:45 UTC) #8
gunsch
https://codereview.chromium.org/212683006/diff/40001/net/server/http_server_unittest.cc File net/server/http_server_unittest.cc (right): https://codereview.chromium.org/212683006/diff/40001/net/server/http_server_unittest.cc#newcode137 net/server/http_server_unittest.cc:137: base::Closure run_loop_quit_func_; On 2014/03/27 20:59:46, Ryan Sleevi wrote: > ...
6 years, 9 months ago (2014-03-27 23:41:16 UTC) #9
gunsch
On 2014/03/27 23:41:16, gunsch wrote: > https://codereview.chromium.org/212683006/diff/40001/net/server/http_server_unittest.cc > File net/server/http_server_unittest.cc (right): > > https://codereview.chromium.org/212683006/diff/40001/net/server/http_server_unittest.cc#newcode137 > ...
6 years, 8 months ago (2014-04-02 00:57:49 UTC) #10
byungchul
On 2014/04/02 00:57:49, gunsch wrote: > On 2014/03/27 23:41:16, gunsch wrote: > > > https://codereview.chromium.org/212683006/diff/40001/net/server/http_server_unittest.cc ...
6 years, 8 months ago (2014-04-02 14:58:11 UTC) #11
Ryan Sleevi
Thank you for explaining, byungchul. I agree that this API probably meets those goals, but ...
6 years, 8 months ago (2014-04-02 15:08:37 UTC) #12
gunsch
I think that would work, yes; it shouldn't be about sending the raw headers as ...
6 years, 8 months ago (2014-04-02 15:26:08 UTC) #13
Ryan Sleevi
Sorry for the delays, I was out sick. On the upside, having thought about it ...
6 years, 8 months ago (2014-04-07 17:07:24 UTC) #14
gunsch
On 2014/04/07 17:07:24, Ryan Sleevi wrote: > Sorry for the delays, I was out sick. ...
6 years, 8 months ago (2014-04-09 01:24:28 UTC) #15
Ryan Sleevi
https://codereview.chromium.org/212683006/diff/120001/net/server/http_server_unittest.cc File net/server/http_server_unittest.cc (right): https://codereview.chromium.org/212683006/diff/120001/net/server/http_server_unittest.cc#newcode97 net/server/http_server_unittest.cc:97: EXPECT_GT(bytes_received, 0); This won't do what you want. When ...
6 years, 8 months ago (2014-04-10 20:58:36 UTC) #16
gunsch
https://codereview.chromium.org/212683006/diff/120001/net/server/http_server_unittest.cc File net/server/http_server_unittest.cc (right): https://codereview.chromium.org/212683006/diff/120001/net/server/http_server_unittest.cc#newcode97 net/server/http_server_unittest.cc:97: EXPECT_GT(bytes_received, 0); On 2014/04/10 20:58:36, Ryan Sleevi wrote: > ...
6 years, 8 months ago (2014-04-11 16:55:56 UTC) #17
Ryan Sleevi
lgtm
6 years, 8 months ago (2014-04-14 23:43:36 UTC) #18
gunsch
The CQ bit was checked by gunsch@chromium.org
6 years, 8 months ago (2014-04-15 05:21:38 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gunsch@chromium.org/212683006/140001
6 years, 8 months ago (2014-04-15 05:24:02 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-15 12:04:14 UTC) #21
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
6 years, 8 months ago (2014-04-15 12:04:15 UTC) #22
gunsch
The CQ bit was checked by gunsch@chromium.org
6 years, 8 months ago (2014-04-15 15:59:41 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gunsch@chromium.org/212683006/140001
6 years, 8 months ago (2014-04-15 16:00:13 UTC) #24
commit-bot: I haz the power
Change committed as 263948
6 years, 8 months ago (2014-04-15 18:48:34 UTC) #25
mmenke
6 years, 8 months ago (2014-04-15 19:54:16 UTC) #26
Message was sent while issue was closed.
Looks like this is making the ASAN bots sad.

Powered by Google App Engine
This is Rietveld 408576698