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

Issue 3002663002: Make it possible for tests to set up trace event handlers. (Closed)

Created:
3 years, 4 months ago by ehmaldonado_webrtc
Modified:
3 years, 4 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Make it possible for tests to set up trace event handlers. As it is now, the first time a TRACE_EVENT... is called, the result from the current handler is stored in a static const variable, and subsequent calls will use that value regardless of changes to the handler. This is a problem if a test wants to use another handler. BUG=None Review-Url: https://codereview.webrtc.org/3002663002 Cr-Commit-Position: refs/heads/master@{#19382} Committed: https://chromium.googlesource.com/external/webrtc/+/a9732656221e0033ab93ecf01cf07f71817da1e8

Patch Set 1 #

Patch Set 2 : Actually fix it. #

Total comments: 8

Patch Set 3 : Address comments. #

Total comments: 2

Patch Set 4 : Nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -1 line) Patch
M webrtc/BUILD.gn View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M webrtc/rtc_base/trace_event.h View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 24 (9 generated)
ehmaldonado_webrtc
What do you think?
3 years, 4 months ago (2017-08-15 13:13:36 UTC) #3
ehmaldonado_webrtc
3 years, 4 months ago (2017-08-16 10:14:44 UTC) #5
kjellander_webrtc
I think hbos/kwiberg is better to review here than me. https://codereview.webrtc.org/3002663002/diff/20001/webrtc/rtc_base/trace_event.h File webrtc/rtc_base/trace_event.h (right): https://codereview.webrtc.org/3002663002/diff/20001/webrtc/rtc_base/trace_event.h#newcode584 ...
3 years, 4 months ago (2017-08-16 11:58:58 UTC) #6
ehmaldonado_webrtc
Ok, wanted to have your opinion on defining the define there under rtc_include_tests. https://codereview.webrtc.org/3002663002/diff/20001/webrtc/rtc_base/trace_event.h File ...
3 years, 4 months ago (2017-08-16 12:00:46 UTC) #7
kjellander_webrtc
https://codereview.webrtc.org/3002663002/diff/20001/webrtc/BUILD.gn File webrtc/BUILD.gn (right): https://codereview.webrtc.org/3002663002/diff/20001/webrtc/BUILD.gn#newcode30 webrtc/BUILD.gn:30: defines += [ "WEBRTC_NON_CONST_TRACE_EVENT_HANDLERS" ] Please add a comment ...
3 years, 4 months ago (2017-08-16 12:17:14 UTC) #8
kwiberg-webrtc
https://codereview.webrtc.org/3002663002/diff/20001/webrtc/BUILD.gn File webrtc/BUILD.gn (right): https://codereview.webrtc.org/3002663002/diff/20001/webrtc/BUILD.gn#newcode30 webrtc/BUILD.gn:30: defines += [ "WEBRTC_NON_CONST_TRACE_EVENT_HANDLERS" ] Please consider always defining ...
3 years, 4 months ago (2017-08-16 13:11:41 UTC) #9
ehmaldonado_webrtc
PTAL https://codereview.webrtc.org/3002663002/diff/20001/webrtc/BUILD.gn File webrtc/BUILD.gn (right): https://codereview.webrtc.org/3002663002/diff/20001/webrtc/BUILD.gn#newcode30 webrtc/BUILD.gn:30: defines += [ "WEBRTC_NON_CONST_TRACE_EVENT_HANDLERS" ] On 2017/08/16 13:11:40, ...
3 years, 4 months ago (2017-08-16 13:40:57 UTC) #10
kjellander_webrtc
lgtm with nit https://codereview.webrtc.org/3002663002/diff/40001/webrtc/rtc_base/trace_event.h File webrtc/rtc_base/trace_event.h (right): https://codereview.webrtc.org/3002663002/diff/40001/webrtc/rtc_base/trace_event.h#newcode579 webrtc/rtc_base/trace_event.h:579: #define INTERNAL_TRACE_EVENT_INFO_TYPE \ nit: I think ...
3 years, 4 months ago (2017-08-16 14:55:00 UTC) #11
ehmaldonado_webrtc
https://codereview.webrtc.org/3002663002/diff/40001/webrtc/rtc_base/trace_event.h File webrtc/rtc_base/trace_event.h (right): https://codereview.webrtc.org/3002663002/diff/40001/webrtc/rtc_base/trace_event.h#newcode579 webrtc/rtc_base/trace_event.h:579: #define INTERNAL_TRACE_EVENT_INFO_TYPE \ On 2017/08/16 14:54:59, kjellander_webrtc wrote: > ...
3 years, 4 months ago (2017-08-16 15:45:15 UTC) #12
kwiberg-webrtc
lgtm
3 years, 4 months ago (2017-08-17 10:04:46 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/3002663002/60001
3 years, 4 months ago (2017-08-17 10:06:14 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_arm64_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_arm64_rel/builds/3570)
3 years, 4 months ago (2017-08-17 10:27:04 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/3002663002/60001
3 years, 4 months ago (2017-08-17 12:10:43 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/external/webrtc/+/a9732656221e0033ab93ecf01cf07f71817da1e8
3 years, 4 months ago (2017-08-17 13:02:33 UTC) #23
ehmaldonado_webrtc
3 years, 4 months ago (2017-08-17 13:06:53 UTC) #24
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.webrtc.org/2997963002/ by ehmaldonado@webrtc.org.

The reason for reverting is: Breaks Chromium bots.
https://build.chromium.org/p/chromium.webrtc.fyi/builders/Mac%20Builder/build....

Powered by Google App Engine
This is Rietveld 408576698