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

Issue 11365022: Add TestInterface methods for adding shill stub devices and services (Closed)

Created:
8 years, 1 month ago by stevenjb
Modified:
8 years, 1 month ago
Reviewers:
hashimoto, satorux1
CC:
chromium-reviews, gauravsh+watch_chromium.org, gspencer+watch_chromium.org, stevenjb+watch_chromium.org, oshima+watch_chromium.org, Greg Spencer (Chromium), gauravsh
Visibility:
Public.

Description

Add TestInterface methods for adding shill stub devices and services This will help write functional tests for network handlers written on top of the Shill client code. BUG=154072 TEST=NetworkSmsHandlerTest.SmsHandlerDbusStub passes Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165633

Patch Set 1 #

Patch Set 2 : Fix clang warnings #

Total comments: 40

Patch Set 3 : Address feedback #

Patch Set 4 : Yet another clang fix #

Total comments: 5

Patch Set 5 : Fix ShillDeviceClientStubImpl::CallGetPropertiesAndBlock #

Unified diffs Side-by-side diffs Delta from patch set Stats (+443 lines, -72 lines) Patch
M chromeos/dbus/mock_shill_device_client.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/dbus/mock_shill_manager_client.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/dbus/mock_shill_service_client.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/dbus/shill_device_client.h View 2 chunks +18 lines, -0 lines 0 comments Download
M chromeos/dbus/shill_device_client.cc View 1 2 3 4 6 chunks +66 lines, -36 lines 0 comments Download
M chromeos/dbus/shill_manager_client.h View 2 chunks +20 lines, -0 lines 0 comments Download
M chromeos/dbus/shill_manager_client.cc View 1 2 5 chunks +150 lines, -24 lines 0 comments Download
M chromeos/dbus/shill_service_client.h View 2 chunks +22 lines, -1 line 0 comments Download
M chromeos/dbus/shill_service_client.cc View 1 2 3 4 chunks +149 lines, -10 lines 0 comments Download
M chromeos/network/network_sms_handler.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/network/network_sms_handler_unittest.cc View 1 2 3 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
stevenjb
8 years, 1 month ago (2012-10-31 23:08:31 UTC) #1
satorux1
LGTM, but please wait for hashimoto@'s comments. http://codereview.chromium.org/11365022/diff/3001/chromeos/dbus/mock_shill_device_client.h File chromeos/dbus/mock_shill_device_client.h (right): http://codereview.chromium.org/11365022/diff/3001/chromeos/dbus/mock_shill_device_client.h#newcode74 chromeos/dbus/mock_shill_device_client.h:74: MOCK_METHOD0(GetTestInterface, TestInterface*(void)); ...
8 years, 1 month ago (2012-11-01 01:47:57 UTC) #2
hashimoto
https://codereview.chromium.org/11365022/diff/3001/chromeos/dbus/shill_device_client.cc File chromeos/dbus/shill_device_client.cc (left): https://codereview.chromium.org/11365022/diff/3001/chromeos/dbus/shill_device_client.cc#oldcode379 chromeos/dbus/shill_device_client.cc:379: const DictionaryValueCallback& callback) const { nit: Please fix this ...
8 years, 1 month ago (2012-11-01 04:54:34 UTC) #3
stevenjb
http://codereview.chromium.org/11365022/diff/3001/chromeos/dbus/mock_shill_device_client.h File chromeos/dbus/mock_shill_device_client.h (right): http://codereview.chromium.org/11365022/diff/3001/chromeos/dbus/mock_shill_device_client.h#newcode74 chromeos/dbus/mock_shill_device_client.h:74: MOCK_METHOD0(GetTestInterface, TestInterface*(void)); On 2012/11/01 01:47:57, satorux1 wrote: > (void) ...
8 years, 1 month ago (2012-11-01 18:45:59 UTC) #4
hashimoto
lgtm if ShillManagerClientStubImpl::EnableTechnology and DisableTechnology do not have any severe problems. (see comments in shill_manager_client.cc) ...
8 years, 1 month ago (2012-11-02 02:06:46 UTC) #5
stevenjb
https://codereview.chromium.org/11365022/diff/13001/chromeos/dbus/shill_device_client.cc File chromeos/dbus/shill_device_client.cc (right): https://codereview.chromium.org/11365022/diff/13001/chromeos/dbus/shill_device_client.cc#newcode252 chromeos/dbus/shill_device_client.cc:252: return new base::DictionaryValue; On 2012/11/02 02:06:47, hashimoto wrote: > ...
8 years, 1 month ago (2012-11-02 02:43:25 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/11365022/13002
8 years, 1 month ago (2012-11-02 02:43:56 UTC) #7
hashimoto
lgtm, thanks.
8 years, 1 month ago (2012-11-02 03:12:45 UTC) #8
commit-bot: I haz the power
8 years, 1 month ago (2012-11-02 06:27:39 UTC) #9
Change committed as 165633

Powered by Google App Engine
This is Rietveld 408576698