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

Issue 619973002: Add unit testing for more org.bluez.Error.* (Closed)

Created:
6 years, 2 months ago by Marie Janssen
Modified:
6 years, 2 months ago
Reviewers:
armansito
CC:
chromium-reviews, stevenjb+watch_chromium.org, hashimoto+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add unit testing for org.bluez.Error.* translation Added checks for correct translation: * Error.Failed * Error.ReadNotPermitted * Error.WriteNotPermitted * Error.NotSupported Error.InProgress tested via new SetExtraProcessing Error.NotAuthorized tested via new SetAuthorized Error.NotPaired tested via new SetAuthenticated BUG=377232 Committed: https://crrev.com/105e536840535f60cac1c5e852ecc892725067cc Cr-Commit-Position: refs/heads/master@{#297752}

Patch Set 1 #

Patch Set 2 : execute delayed when setting delay to 0 #

Total comments: 13

Patch Set 3 : comments, add remaining tests #

Total comments: 1

Patch Set 4 : deconstruction #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -25 lines) Patch
M chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h View 1 2 3 chunks +45 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_gatt_characteristic_client.cc View 1 2 3 6 chunks +123 lines, -18 lines 0 comments Download
M device/bluetooth/bluetooth_gatt_chromeos_unittest.cc View 1 2 7 chunks +71 lines, -7 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Marie Janssen
Here's a method for testing NotAuthorized and InProgress. I might update this CL with tests ...
6 years, 2 months ago (2014-10-01 18:23:29 UTC) #2
armansito
https://codereview.chromium.org/619973002/diff/20001/chromeos/dbus/fake_bluetooth_gatt_characteristic_client.cc File chromeos/dbus/fake_bluetooth_gatt_characteristic_client.cc (right): https://codereview.chromium.org/619973002/diff/20001/chromeos/dbus/fake_bluetooth_gatt_characteristic_client.cc#newcode31 chromeos/dbus/fake_bluetooth_gatt_characteristic_client.cc:31: return; Return statement necessary? https://codereview.chromium.org/619973002/diff/20001/chromeos/dbus/fake_bluetooth_gatt_characteristic_client.cc#newcode136 chromeos/dbus/fake_bluetooth_gatt_characteristic_client.cc:136: error_callback.Run("org.bluez.Error.NotAuthorized", "Authenticate first"); ...
6 years, 2 months ago (2014-10-01 20:08:23 UTC) #3
Marie Janssen
PTAL, addressed comments and added tests for the rest of the dbus errors. https://codereview.chromium.org/619973002/diff/20001/chromeos/dbus/fake_bluetooth_gatt_characteristic_client.cc File ...
6 years, 2 months ago (2014-10-01 22:22:23 UTC) #4
armansito
lgtm with one comment https://codereview.chromium.org/619973002/diff/40001/chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h File chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h (right): https://codereview.chromium.org/619973002/diff/40001/chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h#newcode173 chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h:173: std::map<std::string, DelayedCallback*> action_extra_requests_; Make sure ...
6 years, 2 months ago (2014-10-01 22:25:54 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/619973002/60001
6 years, 2 months ago (2014-10-02 00:20:47 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 9a331b544490f1117e2cda3e30a56fe5fe81cd9a
6 years, 2 months ago (2014-10-02 00:56:46 UTC) #8
commit-bot: I haz the power
6 years, 2 months ago (2014-10-02 00:57:06 UTC) #9
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/105e536840535f60cac1c5e852ecc892725067cc
Cr-Commit-Position: refs/heads/master@{#297752}

Powered by Google App Engine
This is Rietveld 408576698