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

Issue 1532993002: Add output formatters for more mojom types. (Closed)

Created:
5 years ago by jeffbrown
Modified:
4 years, 11 months ago
Reviewers:
abarth, viettrungluu, jamesr
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, yzshen+mojopublicwatch_chromium.org
Base URL:
git@github.com:domokit/mojo.git@moz-9
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Add output formatters for more mojom types. Add output formatters for printing the contents of Mojo arrays, maps, and structs. These are very useful for writing debug logs. Review URL: https://codereview.chromium.org/1519673002 . R=viettrungluu@chromium.org, abarth, jamesr, viettrungluu BUG= Committed: https://chromium.googlesource.com/external/mojo/+/e60e570696af32536f1a8e4bc7f8ce8935d6552d

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : moved formatters into new header file per vtl #

Patch Set 4 : rebase #

Total comments: 4

Patch Set 5 : move tests, change map formatting #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -0 lines) Patch
M mojo/public/cpp/bindings/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A mojo/public/cpp/bindings/formatting.h View 1 2 3 4 1 chunk +77 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/string.h View 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A mojo/public/cpp/bindings/tests/formatting_unittest.cc View 1 2 3 4 1 chunk +104 lines, -0 lines 6 comments Download
M mojo/public/cpp/bindings/tests/string_unittest.cc View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 11 (1 generated)
jeffbrown
5 years ago (2015-12-17 22:03:54 UTC) #1
viettrungluu
To quote and reply to what you said in the original review: > Some good ...
5 years ago (2015-12-17 23:26:29 UTC) #2
jeffbrown
I need feedback on this to unblock Mozart.
4 years, 11 months ago (2016-01-16 01:01:30 UTC) #3
jeffbrown
rebase
4 years, 11 months ago (2016-01-26 09:04:29 UTC) #4
viettrungluu
https://codereview.chromium.org/1532993002/diff/60001/mojo/public/cpp/bindings/formatting.h File mojo/public/cpp/bindings/formatting.h (right): https://codereview.chromium.org/1532993002/diff/60001/mojo/public/cpp/bindings/formatting.h#newcode40 mojo/public/cpp/bindings/formatting.h:40: template <typename Key, typename Value> This is maybe a ...
4 years, 11 months ago (2016-01-26 18:44:05 UTC) #5
jeffbrown
move tests, change map formatting
4 years, 11 months ago (2016-01-26 22:57:31 UTC) #6
jeffbrown
PTAL. https://codereview.chromium.org/1532993002/diff/60001/mojo/public/cpp/bindings/formatting.h File mojo/public/cpp/bindings/formatting.h (right): https://codereview.chromium.org/1532993002/diff/60001/mojo/public/cpp/bindings/formatting.h#newcode40 mojo/public/cpp/bindings/formatting.h:40: template <typename Key, typename Value> On 2016/01/26 18:44:05, ...
4 years, 11 months ago (2016-01-26 22:57:59 UTC) #7
viettrungluu
lgtm w/nit https://codereview.chromium.org/1532993002/diff/80001/mojo/public/cpp/bindings/tests/formatting_unittest.cc File mojo/public/cpp/bindings/tests/formatting_unittest.cc (right): https://codereview.chromium.org/1532993002/diff/80001/mojo/public/cpp/bindings/tests/formatting_unittest.cc#newcode8 mojo/public/cpp/bindings/tests/formatting_unittest.cc:8: #include "mojo/public/cpp/bindings/formatting.h" nit: The convention is to ...
4 years, 11 months ago (2016-01-26 23:19:40 UTC) #8
jeffbrown
https://codereview.chromium.org/1532993002/diff/80001/mojo/public/cpp/bindings/tests/formatting_unittest.cc File mojo/public/cpp/bindings/tests/formatting_unittest.cc (right): https://codereview.chromium.org/1532993002/diff/80001/mojo/public/cpp/bindings/tests/formatting_unittest.cc#newcode8 mojo/public/cpp/bindings/tests/formatting_unittest.cc:8: #include "mojo/public/cpp/bindings/formatting.h" On 2016/01/26 23:19:40, viettrungluu wrote: > nit: ...
4 years, 11 months ago (2016-01-26 23:40:46 UTC) #9
jeffbrown
4 years, 11 months ago (2016-01-26 23:50:30 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
e60e570696af32536f1a8e4bc7f8ce8935d6552d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698