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

Issue 221393004: dbus/values_util.h: Add functions to append collection type values to message. (Closed)

Created:
6 years, 8 months ago by armansito
Modified:
6 years, 7 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Visibility:
Public.

Description

dbus/values_util.h: Add functions to append collection type values to message. Added functions AppendValueData and AppendValueDataAsVariant to values_util.h. These functions are useful for writing both basic types and variant lists and dictionaries to a message writer. Lists and dictionaries are written with type "av" and "a{sv}", respectively. BUG=359413 TEST=dbus_unittests,chromeos_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272167

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed keybuk@'s comment, unmarked old functions as deprecated as they are useful. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -81 lines) Patch
M chromeos/dbus/nfc_client_helpers.h View 1 chunk +0 lines, -6 lines 0 comments Download
M chromeos/dbus/nfc_client_helpers.cc View 1 chunk +0 lines, -49 lines 0 comments Download
M chromeos/dbus/nfc_device_client.cc View 2 chunks +2 lines, -12 lines 0 comments Download
M chromeos/dbus/nfc_tag_client.cc View 2 chunks +2 lines, -12 lines 0 comments Download
M dbus/values_util.h View 1 1 chunk +24 lines, -2 lines 0 comments Download
M dbus/values_util.cc View 2 chunks +51 lines, -0 lines 0 comments Download
M dbus/values_util_unittest.cc View 1 1 chunk +238 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
armansito
avakulenko@, wiley@: FYI These functions cover the most generic use case of variant dictionaries and ...
6 years, 8 months ago (2014-04-03 08:15:32 UTC) #1
keybuk
https://codereview.chromium.org/221393004/diff/1/dbus/values_util_unittest.cc File dbus/values_util_unittest.cc (right): https://codereview.chromium.org/221393004/diff/1/dbus/values_util_unittest.cc#newcode452 dbus/values_util_unittest.cc:452: TEST(ValuesUtilTest, AppendDictionary) { You need test cases for the ...
6 years, 8 months ago (2014-04-03 16:32:22 UTC) #2
armansito
https://codereview.chromium.org/221393004/diff/1/dbus/values_util_unittest.cc File dbus/values_util_unittest.cc (right): https://codereview.chromium.org/221393004/diff/1/dbus/values_util_unittest.cc#newcode452 dbus/values_util_unittest.cc:452: TEST(ValuesUtilTest, AppendDictionary) { On 2014/04/03 16:32:23, keybuk wrote: > ...
6 years, 8 months ago (2014-04-03 17:20:05 UTC) #3
Alex Vakulenko
On 2014/04/03 17:20:05, armansito wrote: > https://codereview.chromium.org/221393004/diff/1/dbus/values_util_unittest.cc > File dbus/values_util_unittest.cc (right): > > https://codereview.chromium.org/221393004/diff/1/dbus/values_util_unittest.cc#newcode452 > ...
6 years, 8 months ago (2014-04-03 17:31:36 UTC) #4
armansito
On 2014/04/03 17:31:36, avakulenko wrote: > On 2014/04/03 17:20:05, armansito wrote: > > https://codereview.chromium.org/221393004/diff/1/dbus/values_util_unittest.cc > ...
6 years, 8 months ago (2014-04-03 18:25:10 UTC) #5
Alex Vakulenko
> I've been thinking about this same issue. We could have a function that handles, ...
6 years, 8 months ago (2014-04-03 18:33:39 UTC) #6
keybuk
dbus/ lgtm There is, of course, always room to improve API (e.g. nested containers) - ...
6 years, 7 months ago (2014-05-20 18:18:24 UTC) #7
armansito
The CQ bit was checked by armansito@chromium.org
6 years, 7 months ago (2014-05-21 22:52:45 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/armansito@chromium.org/221393004/20001
6 years, 7 months ago (2014-05-21 22:56:00 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 07:29:24 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 08:25:24 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/156085)
6 years, 7 months ago (2014-05-22 08:25:24 UTC) #12
armansito
The CQ bit was checked by armansito@chromium.org
6 years, 7 months ago (2014-05-22 10:30:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/armansito@chromium.org/221393004/20001
6 years, 7 months ago (2014-05-22 10:32:25 UTC) #14
commit-bot: I haz the power
Change committed as 272167
6 years, 7 months ago (2014-05-22 11:52:56 UTC) #15
Ben Chan
6 years, 7 months ago (2014-05-22 13:32:55 UTC) #16
Message was sent while issue was closed.
On 2014/05/22 11:52:56, I haz the power (commit-bot) wrote:
> Change committed as 272167

armansito / avakulenko: This CL just missed the libchrome uprev train. Is the
added code needed on the Chrome OS side?  I could probably include this one to
libchrome-dbus if this patch applies and builds cleanly. WDYT?

Powered by Google App Engine
This is Rietveld 408576698