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

Issue 836363002: wifi_sync: add WifiConfigDelegate (Closed)

Created:
5 years, 11 months ago by mukesh agrawal
Modified:
5 years, 11 months ago
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, maxbogue+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@submit-4.1-network-state-helper
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

wifi_sync: add WifiConfigDelegate WifiConfigDelegate provides the ability to modify the platform's Wi-Fi settings. This CL includes an abstract interface class, and a concrete implementatin for ChromeOS. This class will be used by WifiCredentialSyncableService, to effect the changes requested by Chrome Sync. BUG=chromium:431435 TEST=components_unittests --gtest_filter="Wifi*" Committed: https://crrev.com/9d40dcfee9aa0ca890d187df2b31365e6c96878f Cr-Commit-Position: refs/heads/master@{#311991}

Patch Set 1 #

Patch Set 2 : minimize CL #

Patch Set 3 : git checkout submit-4.4.0-add-delegate-factory #

Total comments: 38

Patch Set 4 : use proper unit testing, fix nits #

Total comments: 8

Patch Set 5 : exercise callbacks in unit tests #

Total comments: 12

Patch Set 6 : fix includes, EXPECT vs ASSERT, other nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+375 lines, -0 lines) Patch
M components/components_tests.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/wifi_sync.gypi View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/wifi_sync/BUILD.gn View 1 2 chunks +4 lines, -0 lines 0 comments Download
M components/wifi_sync/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
A components/wifi_sync/wifi_config_delegate.h View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A components/wifi_sync/wifi_config_delegate_chromeos.h View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
A components/wifi_sync/wifi_config_delegate_chromeos.cc View 1 2 3 1 chunk +61 lines, -0 lines 0 comments Download
A components/wifi_sync/wifi_config_delegate_chromeos_unittest.cc View 1 2 3 4 5 1 chunk +229 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (3 generated)
mukesh agrawal
5 years, 11 months ago (2015-01-07 18:42:11 UTC) #3
mukesh agrawal
The build failure is due to this being an incremental CL. (I didn't realize the ...
5 years, 11 months ago (2015-01-07 18:49:08 UTC) #4
mukesh agrawal
PS2 removes the FakeWifiConfigDelegate, and the WifiConfigDelegateFactoryChromeOs. They're not needed just yet, and removing them ...
5 years, 11 months ago (2015-01-10 00:51:57 UTC) #5
mukesh agrawal
This will be used by https://codereview.chromium.org/849693002/ https://codereview.chromium.org/836303004/
5 years, 11 months ago (2015-01-12 21:03:13 UTC) #6
erikwright (departed)
https://codereview.chromium.org/836363002/diff/40001/components/wifi_sync/wifi_config_delegate.h File components/wifi_sync/wifi_config_delegate.h (right): https://codereview.chromium.org/836363002/diff/40001/components/wifi_sync/wifi_config_delegate.h#newcode28 components/wifi_sync/wifi_config_delegate.h:28: DISALLOW_COPY_AND_ASSIGN(WifiConfigDelegate); not required (nor the include) because this class ...
5 years, 11 months ago (2015-01-13 19:03:14 UTC) #7
stevenjb
https://codereview.chromium.org/836363002/diff/40001/components/wifi_sync/wifi_config_delegate.h File components/wifi_sync/wifi_config_delegate.h (right): https://codereview.chromium.org/836363002/diff/40001/components/wifi_sync/wifi_config_delegate.h#newcode18 components/wifi_sync/wifi_config_delegate.h:18: WifiConfigDelegate() {} No need for constructor in abstract class. ...
5 years, 11 months ago (2015-01-13 23:45:40 UTC) #8
mukesh agrawal
On 2015/01/13 23:45:40, stevenjb wrote: > On 2015/01/13 19:03:14, erikwright wrote: > > This test ...
5 years, 11 months ago (2015-01-14 00:07:58 UTC) #9
stevenjb
Normally I would expect the sync integration tests to just test sync, i.e. with a ...
5 years, 11 months ago (2015-01-14 00:17:38 UTC) #10
erikwright (departed)
https://codereview.chromium.org/836363002/diff/40001/components/wifi_sync/wifi_config_delegate.h File components/wifi_sync/wifi_config_delegate.h (right): https://codereview.chromium.org/836363002/diff/40001/components/wifi_sync/wifi_config_delegate.h#newcode18 components/wifi_sync/wifi_config_delegate.h:18: WifiConfigDelegate() {} On 2015/01/13 23:45:39, stevenjb wrote: > No ...
5 years, 11 months ago (2015-01-14 14:51:26 UTC) #11
stevenjb
https://codereview.chromium.org/836363002/diff/40001/components/wifi_sync/wifi_config_delegate_chromeos.h File components/wifi_sync/wifi_config_delegate_chromeos.h (right): https://codereview.chromium.org/836363002/diff/40001/components/wifi_sync/wifi_config_delegate_chromeos.h#newcode32 components/wifi_sync/wifi_config_delegate_chromeos.h:32: // Implementation of WifiConfigDelegate. On 2015/01/14 14:51:26, erikwright wrote: ...
5 years, 11 months ago (2015-01-14 17:08:57 UTC) #12
mukesh agrawal
Thanks, all. Please take another look. https://codereview.chromium.org/836363002/diff/40001/components/wifi_sync/wifi_config_delegate.h File components/wifi_sync/wifi_config_delegate.h (right): https://codereview.chromium.org/836363002/diff/40001/components/wifi_sync/wifi_config_delegate.h#newcode18 components/wifi_sync/wifi_config_delegate.h:18: WifiConfigDelegate() {} On ...
5 years, 11 months ago (2015-01-15 03:01:48 UTC) #13
erikwright (departed)
https://codereview.chromium.org/836363002/diff/40001/components/wifi_sync/wifi_config_delegate_chromeos.h File components/wifi_sync/wifi_config_delegate_chromeos.h (right): https://codereview.chromium.org/836363002/diff/40001/components/wifi_sync/wifi_config_delegate_chromeos.h#newcode32 components/wifi_sync/wifi_config_delegate_chromeos.h:32: // Implementation of WifiConfigDelegate. On 2015/01/14 17:08:56, stevenjb wrote: ...
5 years, 11 months ago (2015-01-15 15:12:51 UTC) #14
stevenjb
https://codereview.chromium.org/836363002/diff/40001/components/wifi_sync/wifi_config_delegate_chromeos.h File components/wifi_sync/wifi_config_delegate_chromeos.h (right): https://codereview.chromium.org/836363002/diff/40001/components/wifi_sync/wifi_config_delegate_chromeos.h#newcode32 components/wifi_sync/wifi_config_delegate_chromeos.h:32: // Implementation of WifiConfigDelegate. On 2015/01/15 15:12:50, erikwright wrote: ...
5 years, 11 months ago (2015-01-15 16:48:10 UTC) #15
stevenjb
FWIW, I find trivial unit tests like this one cost more to maintain than they ...
5 years, 11 months ago (2015-01-15 16:56:26 UTC) #16
mukesh agrawal
Thanks, folks. erik: PTAL steven: you're welcome to TAL if you'd like, of course. :) ...
5 years, 11 months ago (2015-01-15 19:05:55 UTC) #17
erikwright (departed)
LGTM. With regards to the test being overkill, in fact it would be overkill to ...
5 years, 11 months ago (2015-01-16 14:42:15 UTC) #18
mukesh agrawal
thanks, erik. https://codereview.chromium.org/836363002/diff/80001/components/wifi_sync/wifi_config_delegate_chromeos_unittest.cc File components/wifi_sync/wifi_config_delegate_chromeos_unittest.cc (right): https://codereview.chromium.org/836363002/diff/80001/components/wifi_sync/wifi_config_delegate_chromeos_unittest.cc#newcode21 components/wifi_sync/wifi_config_delegate_chromeos_unittest.cc:21: using chromeos::network_handler::DictionaryResultCallback; On 2015/01/16 14:42:15, erikwright wrote: ...
5 years, 11 months ago (2015-01-16 22:45:34 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836363002/100001
5 years, 11 months ago (2015-01-16 22:46:06 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 11 months ago (2015-01-17 00:35:55 UTC) #22
commit-bot: I haz the power
5 years, 11 months ago (2015-01-17 00:37:04 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/9d40dcfee9aa0ca890d187df2b31365e6c96878f
Cr-Commit-Position: refs/heads/master@{#311991}

Powered by Google App Engine
This is Rietveld 408576698