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

Issue 7492029: Implement classes used for manipulating D-Bus messages. (Closed)

Created:
9 years, 5 months ago by satorux1
Modified:
9 years, 4 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Implement classes used for manipulating D-Bus messages. Message/MethodCall/Response classes wrap around DBusMessage. MessageReader and Message Writer provide API to read and write D-Bus messages in a type safe fashion. BUG=90036 TEST=The code is not yet used in Chrome. Run unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94845

Patch Set 1 #

Total comments: 3

Patch Set 2 : remove run_all_unittests.cc from dbus #

Patch Set 3 : Add AppendVariantOfByte() etc. Write more tests. #

Patch Set 4 : Fix spellings #

Patch Set 5 : Use base/format_macros.h #

Patch Set 6 : Add AppendArrayOfBytes and tests #

Total comments: 57

Patch Set 7 : address comments #

Total comments: 4

Patch Set 8 : improve ToString() #

Total comments: 6

Patch Set 9 : rework PopArrayOfBytes #

Patch Set 10 : Address comments #

Patch Set 11 : Add more headers #

Total comments: 31

Patch Set 12 : address comments #

Patch Set 13 : minor fix #

Patch Set 14 : fix all.gyp #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1389 lines, -0 lines) Patch
M build/all.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M dbus/dbus.gyp View 1 1 chunk +19 lines, -0 lines 0 comments Download
A dbus/message.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +333 lines, -0 lines 0 comments Download
A dbus/message.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +664 lines, -0 lines 0 comments Download
A dbus/message_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +372 lines, -0 lines 2 comments Download

Messages

Total messages: 26 (0 generated)
satorux1
9 years, 5 months ago (2011-07-23 01:03:23 UTC) #1
Paweł Hajdan Jr.
Drive-by with a testing suggestion. http://codereview.chromium.org/7492029/diff/1/dbus/run_all_unittests.cc File dbus/run_all_unittests.cc (right): http://codereview.chromium.org/7492029/diff/1/dbus/run_all_unittests.cc#newcode8 dbus/run_all_unittests.cc:8: return base::TestSuite(argc, argv).Run(); Do ...
9 years, 5 months ago (2011-07-25 18:33:18 UTC) #2
satorux1
http://codereview.chromium.org/7492029/diff/1/dbus/run_all_unittests.cc File dbus/run_all_unittests.cc (right): http://codereview.chromium.org/7492029/diff/1/dbus/run_all_unittests.cc#newcode8 dbus/run_all_unittests.cc:8: return base::TestSuite(argc, argv).Run(); On 2011/07/25 18:33:18, Paweł Hajdan Jr. ...
9 years, 5 months ago (2011-07-25 19:47:06 UTC) #3
satorux1
http://codereview.chromium.org/7492029/diff/1/dbus/run_all_unittests.cc File dbus/run_all_unittests.cc (right): http://codereview.chromium.org/7492029/diff/1/dbus/run_all_unittests.cc#newcode8 dbus/run_all_unittests.cc:8: return base::TestSuite(argc, argv).Run(); On 2011/07/25 19:47:06, satorux1 wrote: > ...
9 years, 5 months ago (2011-07-25 19:51:37 UTC) #4
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM, thanks!
9 years, 5 months ago (2011-07-25 23:01:33 UTC) #5
stevenjb
Great stuff. My first round of comments... :) http://codereview.chromium.org/7492029/diff/12003/dbus/message.cc File dbus/message.cc (right): http://codereview.chromium.org/7492029/diff/12003/dbus/message.cc#newcode44 dbus/message.cc:44: CHECK(reader->PopByte(&value)) ...
9 years, 4 months ago (2011-07-27 17:56:25 UTC) #6
satorux1
Steven, Thank you for reviewing the code very carefully and providing great feedback! I think ...
9 years, 4 months ago (2011-07-27 21:20:10 UTC) #7
stevenjb
Responses to review comments. http://codereview.chromium.org/7492029/diff/12003/dbus/message.h File dbus/message.h (right): http://codereview.chromium.org/7492029/diff/12003/dbus/message.h#newcode37 dbus/message.h:37: }; On 2011/07/27 21:20:35, satorux1 ...
9 years, 4 months ago (2011-07-27 21:44:13 UTC) #8
stevenjb
A few more comments, but generally looks good. I am still not entirely convinced that ...
9 years, 4 months ago (2011-07-27 22:08:52 UTC) #9
satorux1
http://codereview.chromium.org/7492029/diff/12003/dbus/message.h File dbus/message.h (right): http://codereview.chromium.org/7492029/diff/12003/dbus/message.h#newcode287 dbus/message.h:287: // specialized function. On 2011/07/27 21:44:13, Steven Bennetts wrote: ...
9 years, 4 months ago (2011-07-27 22:12:14 UTC) #10
satorux1
BTW, in the patch set 8, I changed ToString() to include message headers such as ...
9 years, 4 months ago (2011-07-27 22:13:15 UTC) #11
satorux1
BTW, in the patch set 8, I changed ToString() to include message headers such as ...
9 years, 4 months ago (2011-07-27 22:13:20 UTC) #12
satorux1
http://codereview.chromium.org/7492029/diff/16001/dbus/message.h File dbus/message.h (right): http://codereview.chromium.org/7492029/diff/16001/dbus/message.h#newcode38 dbus/message.h:38: // (i.e. don't try to cast random integers to ...
9 years, 4 months ago (2011-07-27 22:22:58 UTC) #13
satorux1
On 2011/07/27 22:08:52, Steven Bennetts wrote: > A few more comments, but generally looks good. ...
9 years, 4 months ago (2011-07-27 22:36:26 UTC) #14
satorux1
Steven, please let me know if you have more comments on this. Thanks On Jul ...
9 years, 4 months ago (2011-07-29 19:33:38 UTC) #15
stevenjb
One last round of mostly nits :) http://codereview.chromium.org/7492029/diff/19012/dbus/message.cc File dbus/message.cc (right): http://codereview.chromium.org/7492029/diff/19012/dbus/message.cc#newcode287 dbus/message.cc:287: // It ...
9 years, 4 months ago (2011-07-29 20:27:12 UTC) #16
satorux1
Steven, Thank you for all the feedback! http://codereview.chromium.org/7492029/diff/19012/dbus/message.cc File dbus/message.cc (right): http://codereview.chromium.org/7492029/diff/19012/dbus/message.cc#newcode287 dbus/message.cc:287: // It ...
9 years, 4 months ago (2011-07-29 22:08:20 UTC) #17
stevenjb
LGTM!
9 years, 4 months ago (2011-07-29 22:17:50 UTC) #18
commit-bot: I haz the power
Change committed as 94845
9 years, 4 months ago (2011-07-30 19:13:34 UTC) #19
Mark Mentovai
Compile failure! http://build.chromium.org/p/chromium/builders/Linux/builds/10288/steps/compile/logs/stdio cc1plus: warnings being treated as errors dbus/message_unittest.cc:255: error: integer constant is too ...
9 years, 4 months ago (2011-07-30 19:41:14 UTC) #20
Ryan Sleevi
Landed fix in http://crrev.com/94846
9 years, 4 months ago (2011-07-30 20:38:04 UTC) #21
satorux1
Oops, sorry about it, and thank you for the immediate fix!! On Sat, Jul 30, ...
9 years, 4 months ago (2011-07-30 22:53:35 UTC) #22
satorux1
I'm puzzled. This failure wasn't caught by Linux trybot and the commit queue. My local ...
9 years, 4 months ago (2011-07-30 23:08:02 UTC) #23
Ryan Sleevi
On 2011/07/30 23:08:02, satorux1 wrote: > I'm puzzled. This failure wasn't caught by Linux trybot ...
9 years, 4 months ago (2011-07-30 23:09:05 UTC) #24
satorux1
On Sat, Jul 30, 2011 at 4:09 PM, <rsleevi@chromium.org> wrote: > On 2011/07/30 23:08:02, satorux1 ...
9 years, 4 months ago (2011-07-30 23:18:36 UTC) #25
Ryan Sleevi
9 years, 4 months ago (2011-07-30 23:36:52 UTC) #26
The master.chromium Linux clobber builder runs Lucid, 32 bits
The 'linux' trybot runs Lucid, 64 bits . 

Looking at
http://codesearch.google.com/codesearch#OAMlx_jo-ck/tools/build/masters/maste...
, I don't see any 32-bit Linux builders (unless I'm misreading)

On the main build tree,
http://codesearch.google.com/codesearch#OAMlx_jo-ck/tools/build/masters/maste...
, the Linux builder slaves that are 32-bit are
[ 'Linux Builder (dbg)', 'Linux' ]

Of those, 'Linux' builds all, while 'Linux Builder (dbg)' only builds a specific
list of targets -
http://codesearch.google.com/codesearch#OAMlx_jo-ck/tools/build/masters/maste...

May be worth filing an infra issue for a Linux x32 trybot.

Powered by Google App Engine
This is Rietveld 408576698