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

Issue 681723003: Add new shill client for VPN (Closed)

Created:
6 years, 1 month ago by kaliamoorthi
Modified:
6 years, 1 month ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, hashimoto+watch_chromium.org, oshima+watch_chromium.org, Andrew T Wilson (Slow), bartfab (slow), Paul Stewart
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add new shill client for VPN This CL adds new shill client for third party vpn dbus interface. BUG=407541 Committed: https://crrev.com/4c839047c821a5109fd8b5b828f1ca2082cca07a Cr-Commit-Position: refs/heads/master@{#304054}

Patch Set 1 #

Total comments: 27

Patch Set 2 : Extended to include related changes in dbus and adds a fake client #

Total comments: 14

Patch Set 3 : Rebased and fixed previous reveiew comments. #

Patch Set 4 : Added unit tests #

Total comments: 14

Patch Set 5 : Fixes review comments from Steven #

Total comments: 8

Patch Set 6 : Rebased and fixed nits #

Patch Set 7 : Updated the interface to better suit the upper layer #

Total comments: 78

Patch Set 8 : Fixes comments from Philipp #

Patch Set 9 : Removes dependence on basic_types.h and fixes a build error #

Total comments: 16

Patch Set 10 : Fixes comments from Philipp and Steven #

Total comments: 2

Patch Set 11 : Fixes nit from Bartosz #

Total comments: 6

Patch Set 12 : Fixes comments from Philipp #

Total comments: 4

Patch Set 13 : Fixes the issue in unit tests #

Total comments: 2

Patch Set 14 : Fixes nit from Steven #

Unified diffs Side-by-side diffs Delta from patch set Stats (+975 lines, -13 lines) Patch
M chromeos/chromeos.gyp View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -0 lines 0 comments Download
M chromeos/dbus/dbus_client_bundle.h View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -0 lines 0 comments Download
M chromeos/dbus/dbus_client_bundle.cc View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -0 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.cc View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -0 lines 0 comments Download
A chromeos/dbus/fake_shill_third_party_vpn_driver_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +66 lines, -0 lines 0 comments Download
A chromeos/dbus/fake_shill_third_party_vpn_driver_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +96 lines, -0 lines 0 comments Download
M chromeos/dbus/shill_client_unittest_base.h View 1 2 3 4 5 6 7 8 9 6 chunks +38 lines, -1 line 0 comments Download
M chromeos/dbus/shill_client_unittest_base.cc View 1 2 3 4 5 6 7 8 9 6 chunks +89 lines, -3 lines 0 comments Download
M chromeos/dbus/shill_manager_client_unittest.cc View 1 2 3 4 5 2 chunks +12 lines, -6 lines 0 comments Download
M chromeos/dbus/shill_service_client_unittest.cc View 1 2 3 4 5 1 chunk +6 lines, -3 lines 0 comments Download
A chromeos/dbus/shill_third_party_vpn_driver_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +91 lines, -0 lines 0 comments Download
A chromeos/dbus/shill_third_party_vpn_driver_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +335 lines, -0 lines 0 comments Download
A chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +183 lines, -0 lines 0 comments Download
A chromeos/dbus/shill_third_party_vpn_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (11 generated)
kaliamoorthi
Hi Steven, Following our initial discussion on VPN, I am prototyping a solution for it. ...
6 years, 1 month ago (2014-10-29 16:24:48 UTC) #2
stevenjb
'ThirdPartyVpn' is kind of cumbersome, maybe brainstorm other names, maybe 'CustomVpn'? Overall this looks fine. ...
6 years, 1 month ago (2014-10-29 18:14:56 UTC) #3
kaliamoorthi
CustomVpn is short, but all the shill code refers to it as third party vpn. ...
6 years, 1 month ago (2014-10-30 13:09:05 UTC) #6
stevenjb
https://codereview.chromium.org/681723003/diff/1/chromeos/dbus/shill_third_party_vpn_driver_client.cc File chromeos/dbus/shill_third_party_vpn_driver_client.cc (right): https://codereview.chromium.org/681723003/diff/1/chromeos/dbus/shill_third_party_vpn_driver_client.cc#newcode29 chromeos/dbus/shill_third_party_vpn_driver_client.cc:29: "dns_servers"}; On 2014/10/30 13:09:05, kaliamoorthi wrote: > On 2014/10/29 ...
6 years, 1 month ago (2014-10-30 20:55:37 UTC) #7
kaliamoorthi
PTAL. https://codereview.chromium.org/681723003/diff/40001/chromeos/dbus/fake_shill_third_party_vpn_driver_client.cc File chromeos/dbus/fake_shill_third_party_vpn_driver_client.cc (right): https://codereview.chromium.org/681723003/diff/40001/chromeos/dbus/fake_shill_third_party_vpn_driver_client.cc#newcode27 chromeos/dbus/fake_shill_third_party_vpn_driver_client.cc:27: LOG(ERROR) << "Observer exists."; On 2014/10/30 20:55:36, stevenjb ...
6 years, 1 month ago (2014-10-31 11:03:48 UTC) #9
kaliamoorthi
I added unit tests for the new client, it is complete now. PTAL.
6 years, 1 month ago (2014-10-31 16:05:19 UTC) #10
stevenjb
Looking good, just a couple of comments. https://codereview.chromium.org/681723003/diff/100001/chromeos/dbus/shill_manager_client_unittest.cc File chromeos/dbus/shill_manager_client_unittest.cc (right): https://codereview.chromium.org/681723003/diff/100001/chromeos/dbus/shill_manager_client_unittest.cc#newcode279 chromeos/dbus/shill_manager_client_unittest.cc:279: base::Bind(&ExpectDictionaryValueArgument, arg.get(), ...
6 years, 1 month ago (2014-10-31 16:35:42 UTC) #11
kaliamoorthi
Fixed comments from Steven. Paul Please review the CL from a logic perspective. You would ...
6 years, 1 month ago (2014-11-03 10:55:38 UTC) #12
stevenjb
Just nits at this point. https://codereview.chromium.org/681723003/diff/120001/chromeos/dbus/shill_manager_client_unittest.cc File chromeos/dbus/shill_manager_client_unittest.cc (right): https://codereview.chromium.org/681723003/diff/120001/chromeos/dbus/shill_manager_client_unittest.cc#newcode277 chromeos/dbus/shill_manager_client_unittest.cc:277: bool string_valued = false; ...
6 years, 1 month ago (2014-11-03 16:55:23 UTC) #13
kaliamoorthi
PTAL https://codereview.chromium.org/681723003/diff/120001/chromeos/dbus/shill_manager_client_unittest.cc File chromeos/dbus/shill_manager_client_unittest.cc (right): https://codereview.chromium.org/681723003/diff/120001/chromeos/dbus/shill_manager_client_unittest.cc#newcode277 chromeos/dbus/shill_manager_client_unittest.cc:277: bool string_valued = false; On 2014/11/03 16:55:23, stevenjb ...
6 years, 1 month ago (2014-11-04 12:58:59 UTC) #14
kaliamoorthi
I added Phillipp to review the logic. PTAL.
6 years, 1 month ago (2014-11-04 16:39:21 UTC) #16
stevenjb
lgtm
6 years, 1 month ago (2014-11-04 17:22:53 UTC) #17
pneubeck (no reviews)
looked at shill_third_party_vpn_driver_client so far https://codereview.chromium.org/681723003/diff/180001/chromeos/dbus/shill_third_party_vpn_driver_client.cc File chromeos/dbus/shill_third_party_vpn_driver_client.cc (right): https://codereview.chromium.org/681723003/diff/180001/chromeos/dbus/shill_third_party_vpn_driver_client.cc#newcode8 chromeos/dbus/shill_third_party_vpn_driver_client.cc:8: #include "base/macros.h" nit: not ...
6 years, 1 month ago (2014-11-10 16:44:08 UTC) #19
pneubeck (no reviews)
some more comments, overall looks rather good. https://codereview.chromium.org/681723003/diff/180001/chromeos/dbus/fake_shill_third_party_vpn_driver_client.h File chromeos/dbus/fake_shill_third_party_vpn_driver_client.h (right): https://codereview.chromium.org/681723003/diff/180001/chromeos/dbus/fake_shill_third_party_vpn_driver_client.h#newcode8 chromeos/dbus/fake_shill_third_party_vpn_driver_client.h:8: #include "base/basictypes.h" ...
6 years, 1 month ago (2014-11-11 13:09:35 UTC) #20
pneubeck (no reviews)
https://codereview.chromium.org/681723003/diff/180001/chromeos/dbus/shill_third_party_vpn_driver_client.h File chromeos/dbus/shill_third_party_vpn_driver_client.h (right): https://codereview.chromium.org/681723003/diff/180001/chromeos/dbus/shill_third_party_vpn_driver_client.h#newcode50 chromeos/dbus/shill_third_party_vpn_driver_client.h:50: const uint8* data, like for the observer, you should ...
6 years, 1 month ago (2014-11-11 13:17:17 UTC) #21
kaliamoorthi
Philipp, This addresses your previous comments. PTAL. https://codereview.chromium.org/681723003/diff/180001/chromeos/dbus/fake_shill_third_party_vpn_driver_client.h File chromeos/dbus/fake_shill_third_party_vpn_driver_client.h (right): https://codereview.chromium.org/681723003/diff/180001/chromeos/dbus/fake_shill_third_party_vpn_driver_client.h#newcode8 chromeos/dbus/fake_shill_third_party_vpn_driver_client.h:8: #include "base/basictypes.h" ...
6 years, 1 month ago (2014-11-11 14:58:34 UTC) #22
pneubeck (no reviews)
https://codereview.chromium.org/681723003/diff/180001/chromeos/dbus/fake_shill_third_party_vpn_driver_client.h File chromeos/dbus/fake_shill_third_party_vpn_driver_client.h (right): https://codereview.chromium.org/681723003/diff/180001/chromeos/dbus/fake_shill_third_party_vpn_driver_client.h#newcode8 chromeos/dbus/fake_shill_third_party_vpn_driver_client.h:8: #include "base/basictypes.h" On 2014/11/11 14:58:32, kaliamoorthi wrote: > On ...
6 years, 1 month ago (2014-11-11 16:34:48 UTC) #23
kaliamoorthi
PTAL https://codereview.chromium.org/681723003/diff/180001/chromeos/dbus/fake_shill_third_party_vpn_driver_client.h File chromeos/dbus/fake_shill_third_party_vpn_driver_client.h (right): https://codereview.chromium.org/681723003/diff/180001/chromeos/dbus/fake_shill_third_party_vpn_driver_client.h#newcode8 chromeos/dbus/fake_shill_third_party_vpn_driver_client.h:8: #include "base/basictypes.h" On 2014/11/11 16:34:48, pneubeck wrote: > ...
6 years, 1 month ago (2014-11-11 17:49:19 UTC) #25
pneubeck (no reviews)
@Steven, please take another look at shill_client_unittest_base.h and whether you see any reason why ThirdPartyVPN ...
6 years, 1 month ago (2014-11-12 14:21:07 UTC) #28
stevenjb
As it turns out, I both agree and disagree with what code should be in ...
6 years, 1 month ago (2014-11-12 18:05:13 UTC) #29
kaliamoorthi
PTAL. This addresses all previous comments. https://codereview.chromium.org/681723003/diff/280001/chromeos/dbus/shill_third_party_vpn_driver_client.cc File chromeos/dbus/shill_third_party_vpn_driver_client.cc (right): https://codereview.chromium.org/681723003/diff/280001/chromeos/dbus/shill_third_party_vpn_driver_client.cc#newcode65 chromeos/dbus/shill_third_party_vpn_driver_client.cc:65: return NULL; On ...
6 years, 1 month ago (2014-11-13 12:16:31 UTC) #30
bartfab (slow)
https://codereview.chromium.org/681723003/diff/300001/chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc File chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc (right): https://codereview.chromium.org/681723003/diff/300001/chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc#newcode50 chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc:50: EXPECT_FALSE(true) << error_name << error_message; Instead of EXPECT_FALSE(true), you ...
6 years, 1 month ago (2014-11-13 12:18:48 UTC) #32
pneubeck (no reviews)
https://codereview.chromium.org/681723003/diff/180001/chromeos/dbus/shill_third_party_vpn_driver_client.cc File chromeos/dbus/shill_third_party_vpn_driver_client.cc (right): https://codereview.chromium.org/681723003/diff/180001/chromeos/dbus/shill_third_party_vpn_driver_client.cc#newcode192 chromeos/dbus/shill_third_party_vpn_driver_client.cc:192: ReleaseHelper(object_path); On 2014/11/12 14:21:07, pneubeck wrote: > On 2014/11/11 ...
6 years, 1 month ago (2014-11-13 14:06:11 UTC) #33
kaliamoorthi
PTAL. I added a test to ensure that the callbacks get fired even after the ...
6 years, 1 month ago (2014-11-13 16:10:52 UTC) #34
pneubeck (no reviews)
https://codereview.chromium.org/681723003/diff/340001/chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc File chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc (right): https://codereview.chromium.org/681723003/diff/340001/chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc#newcode84 chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc:84: SendPacketReceievedSignal(&preceived_signal); ah, I missed before that you have to ...
6 years, 1 month ago (2014-11-13 16:40:12 UTC) #35
kaliamoorthi
https://codereview.chromium.org/681723003/diff/340001/chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc File chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc (right): https://codereview.chromium.org/681723003/diff/340001/chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc#newcode84 chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc:84: SendPacketReceievedSignal(&preceived_signal); On 2014/11/13 16:40:12, pneubeck wrote: > ah, I ...
6 years, 1 month ago (2014-11-13 17:13:43 UTC) #36
pneubeck (no reviews)
lgtm
6 years, 1 month ago (2014-11-13 17:14:25 UTC) #37
kaliamoorthi
On 2014/11/13 17:14:25, pneubeck wrote: > lgtm Thanks Philipp. Steven, Can you please give me ...
6 years, 1 month ago (2014-11-13 17:15:26 UTC) #38
stevenjb
owner lgtm https://codereview.chromium.org/681723003/diff/360001/chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc File chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc (right): https://codereview.chromium.org/681723003/diff/360001/chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc#newcode50 chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc:50: ADD_FAILURE() << error_name << error_message; nit: Separate ...
6 years, 1 month ago (2014-11-13 17:53:56 UTC) #39
kaliamoorthi
On 2014/11/13 17:53:56, stevenjb wrote: > owner lgtm > > https://codereview.chromium.org/681723003/diff/360001/chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc > File chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc (right): ...
6 years, 1 month ago (2014-11-13 18:02:45 UTC) #40
kaliamoorthi
https://codereview.chromium.org/681723003/diff/360001/chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc File chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc (right): https://codereview.chromium.org/681723003/diff/360001/chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc#newcode50 chromeos/dbus/shill_third_party_vpn_driver_client_unittest.cc:50: ADD_FAILURE() << error_name << error_message; On 2014/11/13 17:53:56, stevenjb ...
6 years, 1 month ago (2014-11-13 18:03:18 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/681723003/380001
6 years, 1 month ago (2014-11-13 18:05:29 UTC) #43
commit-bot: I haz the power
Committed patchset #14 (id:380001)
6 years, 1 month ago (2014-11-13 18:51:13 UTC) #44
commit-bot: I haz the power
6 years, 1 month ago (2014-11-13 18:51:58 UTC) #45
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/4c839047c821a5109fd8b5b828f1ca2082cca07a
Cr-Commit-Position: refs/heads/master@{#304054}

Powered by Google App Engine
This is Rietveld 408576698