Commit f0de955
src: reduce test_inspector_socket_server output
Currently, when test/cctest/test_inspector_socket_server.cc is run there
is output written to stderr by src/inspector_socket_server.cc which is
interleaved with the gtest report:
Debugger listening on port 9229.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URLs in Chrome:
...
The goal of this commit is to remove the above logged information
by introducing an out_ member in the InspectorSocketServer class
which defaults to stderr (keeping the current behavior).
Setting out_ to NULL is supported in which case nothing will be written
and is what the test has been configured with. When working on specific
test case the appropriate output stream can be specified for the
ServerHolder constructor to limit logging to that test case.
PR-URL: #10537
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>1 parent 06a8243 commit f0de955Copy full SHA for f0de955
File tree
Expand file treeCollapse file tree
3 files changed
+30
-18
lines changedOpen diff view settings
Filter options
- src
- test/cctest
Expand file treeCollapse file tree
3 files changed
+30
-18
lines changedOpen diff view settings
Collapse file
src/inspector_socket_server.cc
Copy file name to clipboardExpand all lines: src/inspector_socket_server.cc+24-15Lines changed: 24 additions & 15 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
74 | 74 | |
75 | 75 | |
76 | 76 | |
77 | | - |
78 | | - |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
79 | 84 | |
80 | 85 | |
81 | 86 | |
82 | 87 | |
83 | 88 | |
84 | | - |
| 89 | + |
85 | 90 | |
86 | | - |
| 91 | + |
87 | 92 | |
88 | | - |
| 93 | + |
89 | 94 | |
90 | 95 | |
91 | 96 | |
92 | | - |
| 97 | + |
93 | 98 | |
94 | 99 | |
95 | 100 | |
| ||
207 | 212 | |
208 | 213 | |
209 | 214 | |
210 | | - |
211 | | - |
212 | | - |
213 | | - |
214 | | - |
215 | | - |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
216 | 223 | |
217 | 224 | |
218 | 225 | |
| ||
260 | 267 | |
261 | 268 | |
262 | 269 | |
263 | | - |
| 270 | + |
264 | 271 | |
265 | 272 | |
266 | 273 | |
| ||
337 | 344 | |
338 | 345 | |
339 | 346 | |
340 | | - |
| 347 | + |
341 | 348 | |
342 | 349 | |
343 | | - |
| 350 | + |
| 351 | + |
| 352 | + |
344 | 353 | |
345 | 354 | |
346 | 355 | |
|
Collapse file
src/inspector_socket_server.h
Copy file name to clipboardExpand all lines: src/inspector_socket_server.h+4-1Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
32 | 32 | |
33 | 33 | |
34 | 34 | |
35 | | - |
| 35 | + |
| 36 | + |
| 37 | + |
36 | 38 | |
37 | 39 | |
38 | 40 | |
| ||
66 | 68 | |
67 | 69 | |
68 | 70 | |
| 71 | + |
69 | 72 | |
70 | 73 | |
71 | 74 | |
|
Collapse file
test/cctest/test_inspector_socket_server.cc
Copy file name to clipboardExpand all lines: test/cctest/test_inspector_socket_server.cc+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
300 | 300 | |
301 | 301 | |
302 | 302 | |
303 | | - |
| 303 | + |
304 | 304 | |
305 | | - |
| 305 | + |
306 | 306 | |
307 | 307 | |
308 | 308 | |
|
0 commit comments