commit | 397e2ee0bb9444b7f9c91980140c307ebfdab9dc | [log] [tgz] |
---|---|---|
author | Ben Chan <[email protected]> | Fri Mar 07 22:19:55 2014 |
committer | chrome-internal-fetch <[email protected]> | Fri Jul 11 01:55:52 2014 |
tree | 2eb0272029a9bb64eca1e00d44783f5ae33c7f74 | |
parent | 687d4e8c3f0d22c5a6193d8c87551500a86f499b [diff] |
dbus-c++: report DBUS_ERROR_OBJECT_PATH_IN_USE error This CL modifies ObjectAdaptor::register_obj() to throw an ErrorObjectPathInUse exception if it fails to register a handler for a given path in the DBus object hierarchy (i.e. upon a DBUS_ERROR_OBJECT_PATH_IN_USE error). BUG=chromium:392903 TEST=Tested the following: 1. `emerge-$BOARD dbus-c++` 2. Manually modify shill to register a DBus adaptor with the same object path twice, and verify that an ErrorObjectPathInUse exception is raised. Change-Id: Ied787112ecd04aae67c6b78060d8cedb03eeda73 Reviewed-on: https://chromium-review.googlesource.com/207344 Reviewed-by: mukesh agrawal <[email protected]> Commit-Queue: Ben Chan <[email protected]> Tested-by: Ben Chan <[email protected]>