c0beca55d290fe0b1c96d78cbbcf94b05c23f5a5 |
|
03-Sep-2015 |
Peter Qiu <zqiu@google.com> |
License shill to Apache2 This patch automatically replaced the license on all text files from Chromium OS (BSD style) to AOSP (Apache2), keeping the original year as a reference. The license header was added to .gyp and .gypi, the NOTICE was added with a copy of the Apache2 license and MODULE_LICENSE_* file was added. BUG=23587594 TEST=grep 'Chromium OS Authors' doesn't find anything. Change-Id: If41ede586c2465f5831fb7fee270ff41dbfdb596
/system/connectivity/shill/virtual_device.h
|
1a212a6b98b22ad1d69652bb26a9e94138635476 |
|
16-Jun-2015 |
Paul Stewart <pstew@chromium.org> |
shill: Top-level files n-v: Switch pointer/ref spacing Switch to Chrome style spacing. BUG=chromium:501026 TEST=Unit tests Change-Id: I8bd6f66ea185ca3a2687986f6f2fd99be957dffe Reviewed-on: https://chromium-review.googlesource.com/278070 Reviewed-by: Rebecca Silberstein <silberst@chromium.org> Commit-Queue: Paul Stewart <pstew@chromium.org> Tested-by: Paul Stewart <pstew@chromium.org>
/system/connectivity/shill/virtual_device.h
|
6acd966cabe0d75e0d9ae3f84c727c9b44a899b3 |
|
30-Jan-2015 |
Yunlian Jiang <yunlian@google.com> |
shill: fix -Winconsistent-missing-override warning found by clang. This cleans up the warning '-Winconsistent-missing-override'. BUG=chromium:453588 TEST=USE='vpn wimax cellular' FEATURES="test" emerge-amd64-generic shill Change-Id: I39056b312f616eccc916bce7fb6ad8ab8ca6ca55 Reviewed-on: https://chromium-review.googlesource.com/244692 Reviewed-by: Ben Chan <benchan@chromium.org> Commit-Queue: Yunlian Jiang <yunlian@chromium.org> Tested-by: Yunlian Jiang <yunlian@chromium.org>
/system/connectivity/shill/virtual_device.h
|
cc67c52a2c00f90e877971d552208dd99825d84e |
|
03-Sep-2014 |
Ben Chan <benchan@chromium.org> |
shill: Include base/macros.h instead of base/basictypes.h shill no longer uses the integer types from base/basictypes.h. It should simply include base/macros.h for the DISALLOW_COPY_AND_ASSIGN macro instead. BUG=None TEST=`USE='cellular wimax' FEATURES=test emerge-$BOARD platform2` Change-Id: I9b350c1bd9eff88e2c87de2ef8d607e90049e102 Reviewed-on: https://chromium-review.googlesource.com/216055 Reviewed-by: Paul Stewart <pstew@chromium.org> Commit-Queue: Ben Chan <benchan@chromium.org> Tested-by: Ben Chan <benchan@chromium.org>
/system/connectivity/shill/virtual_device.h
|
016fa0e9c8f47630c8e6c440ace42ba99f8498df |
|
12-Aug-2014 |
Alex Vakulenko <avakulenko@chromium.org> |
platform2: sweep the lint errors identified by the updated linter cpplint.py has been updated and identified new issues in existing code. Stuff like overridden functions that specify 'override' should not be marked as 'virtual', and constructors with no parameters should not be marked as 'explicit'. BUG=None TEST=cpplint.py `find ./platform2 -name *.cc -or -name *.h` Change-Id: Ibb9de43286d874d076ffd5ebb1b13c36ec794f01 Reviewed-on: https://chromium-review.googlesource.com/211950 Reviewed-by: Alex Vakulenko <avakulenko@chromium.org> Commit-Queue: Alex Vakulenko <avakulenko@chromium.org> Tested-by: Alex Vakulenko <avakulenko@chromium.org>
/system/connectivity/shill/virtual_device.h
|
8a5322984f2d81bcbfd8d44c59747a11bd9b904b |
|
17-Jun-2014 |
Alex Vakulenko <avakulenko@chromium.org> |
shill: Fix most of warnings from cpplint Fix most cpplinter's warnings. On a few occasisions, the warnings produced were false-positives, so added explicit // NOLINT comment overrides. There were a few instances of disallowed non-const reference usage (reported as runtime/reference error by cpplint) for "DBus::Error &error" which should potentially be changed to pointers to comply with C++ coding style but I will let Shill owners do that since there is quite a few of those and the change isn't brain-dead simple... BUG=None TEST=platform2 still compiles and all unit tests pass. Change-Id: Ic2e31896aa13d20eeb1a85dee74f3db8cccfde2e Reviewed-on: https://chromium-review.googlesource.com/204164 Tested-by: Alex Vakulenko <avakulenko@chromium.org> Reviewed-by: mukesh agrawal <quiche@chromium.org> Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
/system/connectivity/shill/virtual_device.h
|
0381f9a7b4c0d27387bae44ea2f3b048fad1830c |
|
12-Jul-2013 |
mukesh agrawal <quiche@chromium.org> |
shill: cellular: improve handling of CellularService state As noted in crbug.com/246456#c1, when using a PPP dongle, we don't let the Cellular object SelectService on the CellularService. That avoids potential conflicts where both Cellular and PPPDevice are trying to manage the IP configuration of the Service. However, there are some state change events that need to be propagated to the Service. In particular, when the modem disconnects, we need to move the Service to the idle state. Fix this by overriding the various service-state-setting methods with versions that punt over to PPPDevice, when appropriate. While there: - mark Cellular::OnNoNetworkRouting as override-ing - move cleanup of MockCellularService to CellularTest:TearDown (instead of being the responsibility of individual tests) BUG=chromium:252067 TEST=new unit tests, manual (see below) Manual testing -------------- 1. plug in ppp dongle 2. wait for dongle to connect 3. chrome://settings -> Mobile data -> <provider> -> Disconnect 4. wait for disconnect to complete 5. "Mobile data" should show "Not connected" 6. chrome://network should show the Cellular service in "idle" state. 7. ifconfig should not show any ppp device (e.g. ppp0, ppp1) 8. Mobile data -> <provider> -> Connect 9. connect should succeed Change-Id: I512c98ef8cc187fa039e58ad66da604ff1739063 Reviewed-on: https://gerrit.chromium.org/gerrit/61625 Reviewed-by: Ben Chan <benchan@chromium.org> Commit-Queue: mukesh agrawal <quiche@chromium.org> Tested-by: mukesh agrawal <quiche@chromium.org>
/system/connectivity/shill/virtual_device.h
|
9da07771df3dbbc99ff99114c26317d01f29f7fc |
|
15-May-2013 |
mukesh agrawal <quiche@chromium.org> |
shill: support 3G dongles with PPP interface Assuming the 3G dongle has been switched to modem mode (with usb_modeswitch or similar), and an activated SIM is present, shill will automatically connect to the cellular network. The primary change, as far as the Cellular/Modem logic goes, is that we take the absence of a link name to mean that the modem is a PPP dongle. Instead of bailing out, we create the Cellular object, and register it with the manager as any other Cellular device. When the Cellular connection is complete, CellularCapabilityUniversal checks the Bearer's IPConfig method, as indicated by modemmanager1. If the method is specified as PPP, the capability asks the Cellular device to start PPP. When PPP setup completes, Cellular passes the IP configuration information to the PPPDevice. At that point, the PPPDevice is assigned an IP address, and routing is updated appropriately. Notable changes: - Moved VPN to VirtualDevice, changed OpenVPNDriver to use it, created a new subclass PPPDevice. - Moved PPP code out of L2TPIPSecDriver, and into PPPDevice. - Changed L2TPIPSecDriver to use PPPDevice. While there: - Got rid of VPNDriver::OnDisconnected, and changed callers to use DropConnection instead. - Made Load and Save of VirtualDevices no-ops. This eliminates the confusingly named "device_" stanzas in the default profile. We lose VPN byte counts by doing this, but they weren't sensible anyway (they'd be shared across potentially different VPNs). New units will follow in another CL (TBW). BUG=chromium:240051 TEST=unit tests, manual Manual testing -------------- 1. Get 3G PPP dongle. 2. Install activated SIM. 3. Plug dongle into USB port. 4. Wait for the dongle to switch to modem mode. (I used a manually installed usb_modeswitch, but this will soon be handled by mist.) 5. Wait for the dongle to connect. With the Huawei E303, this takes about 35 seconds. Change-Id: I916bef451ee6e8dcf1af8135ecf6787251acf19b Reviewed-on: https://gerrit.chromium.org/gerrit/51356 Commit-Queue: mukesh agrawal <quiche@chromium.org> Reviewed-by: mukesh agrawal <quiche@chromium.org> Tested-by: mukesh agrawal <quiche@chromium.org>
/system/connectivity/shill/virtual_device.h
|