fa1eb722d0742d89c26b9c5c81d02ef2a138cbf2 |
|
21-Dec-2015 |
Alex Vakulenko <avakulenko@google.com> |
shill: Disable RTTI There is no longer a reliance on RTTI in libbrillo, so disable RTTI in the rest of Brillo codebase. Shill also used dynamic_cast<> in many places but it looks like there is no reason for that. Using static_cast<> in those places seems to work just as well and doesn't require RTTI. Bug: 26292405, chromium:220387 TEST: Compiles, all unit tests pass on Dragonboard Was able to bootstrap a device from scratch and networking seems to work fine. Change-Id: Id0c47168e634e354b4279f613246e6667df6fb5f
/system/connectivity/shill/cellular/cellular_unittest.cc
|
15d5431798155cc83a3fcb8abe0d1a2d5128f7b6 |
|
09-Oct-2015 |
Rebecca Silberstein <silberst@google.com> |
RE-LAND: shill: use DhcpProperties for dhcpv4 config In some deployments, DHCP properties need to be specified for DHCP requests. These properties will be set via the PropertyStore and stored in the user profile (per service) and the default profile. To implement this, the manager and service classes will each have an instance of DhcpProperties to track the property settings stored in the applicable profile. When a device creates a dhcp_config object to configure the dhcpcd options, it will merge any applicable DhcpProperties values set in the default and user profiles. Users were previously able to set the hostname for DHCP requests using the Manager.Hostname property. This value is now included in the new DhcpProperties object. Two options are currently supported: DhcpProperties.Hostname and DhcpProperties.VendorClass. This change also includes new tests for the new object and the affiliated functions. Existing tests were also updated to cover this new functionality. Bug: 24162121 TEST="FEATURES=test emerge-daisy shill" TEST=compiled for brillo Change-Id: I045ab0dbf866ea0084a8f77b28bfff24970bb92c
/system/connectivity/shill/cellular/cellular_unittest.cc
|
f95fe0f32645a56ba4a1dfb2dfbcaabf80b0b3f2 |
|
31-Oct-2015 |
Rebecca Silberstein <silberst@google.com> |
Revert "shill: use DhcpProperties for dhcpv4 config" This reverts commit 5ac8c7b32241582e2e39469297de6b7cab2c7d19. Change-Id: I7b8e747aca30a2d09dc474d2c5ef31ffcccf8032
/system/connectivity/shill/cellular/cellular_unittest.cc
|
5ac8c7b32241582e2e39469297de6b7cab2c7d19 |
|
09-Oct-2015 |
Rebecca Silberstein <silberst@google.com> |
shill: use DhcpProperties for dhcpv4 config In some deployments, DHCP properties need to be specified for DHCP requests. These properties will be set via the PropertyStore and stored in the user profile (per service) and the default profile. To implement this, the manager and service classes will each have an instance of DhcpProperties to track the property settings stored in the applicable profile. When a device creates a dhcp_config object to configure the dhcpcd options, it will merge any applicable DhcpProperties values set in the default and user profiles. Users were previously able to set the hostname for DHCP requests using the Manager.Hostname property. This value is now included in the new DhcpProperties object. Two options are currently supported: DhcpProperties.Hostname and DhcpProperties.VendorClass. This change also includes new tests for the new object and the affiliated functions. Existing tests were also updated to cover this new functionality. Bug: 24162121 TEST="USE="asan clang" FEATURES=test emerge-samus shill" Change-Id: I9e25ced863661cfd73164faf9032df25b208c6c2
/system/connectivity/shill/cellular/cellular_unittest.cc
|
289a5a5e18bb1a676b3dfce111af4c2c00c7776e |
|
21-Sep-2015 |
Samuel Tan <samueltan@google.com> |
shill: use different service_constants.h path for Android builds Use the service_constants.h file from the external/cros/system_api/dbus instead of chromeos/dbus/service_constants.h, since this header file is installed into different directories when building shill for Android and Chrome OS. BUG: 22956441 Change-Id: I7e6ea46b4893588d2862792cf43aa83fdf7c30b4 TEST: shill still compiles using emerge.
/system/connectivity/shill/cellular/cellular_unittest.cc
|
bad1c10ffd2d4ac14f7bd9f4ef6a8982e711f566 |
|
19-Sep-2015 |
mukesh agrawal <quiche@google.com> |
shill: remove references to GLib There are a number of references to GLib (the object), even though no one uses GLib in a substantive way. Remove these obsolete references. Bug: 23386647 TEST=unit tests Change-Id: I8d574980bc8e853c8b87ef64b581d64a71491201
/system/connectivity/shill/cellular/cellular_unittest.cc
|
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/cellular/cellular_unittest.cc
|
05d87e34869f44473edc1eec25d2fe1110d777a7 |
|
15-Aug-2015 |
Peter Qiu <zqiu@chromium.org> |
shill: Cellular: cleanup proxy interfaces Remove dbus-c++ dependency from cellular proxy interfaces. The changes include: - Replace DBusPropertiesMap with KeyValueStore. - Replace DBus::Path with std::string. - Initialize proxies using service's well known name (service_name) instead of service owner's name (owner), since there can only be one owner per service and it is easier to use service_name with the new proxy setup. - Replace DBus::Struct with std::tuple. An upcoming CL will implement proxies using chromeos dbus, and integrate them into ChromeosDBusControl. BUG=chromium:517680 TEST=USE="chromeos_dbus asan clang" FEATURES=test emerge-$BOARD shill Change-Id: I041369f69e7160a471efc8f90eef1d909df1a776 Reviewed-on: https://chromium-review.googlesource.com/293796 Commit-Ready: Zeping Qiu <zqiu@chromium.org> Tested-by: Zeping Qiu <zqiu@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org>
/system/connectivity/shill/cellular/cellular_unittest.cc
|
608ec29525f553d51f0a92e84176e3d4b45930a9 |
|
31-Jul-2015 |
Peter Qiu <zqiu@chromium.org> |
shill: use ControlInterface to create proxy objects So that appropriate proxy objects can be created based on the type of the control interface. While there, remove ProxyFactory related files. BUG=chromium:513791 TEST=USE="asan clang cellular wimax dhcpv6" FEATURES=test emerge-$BOARD shill Change-Id: I465b0807ab4ccacac3891638db41384f43ef83c5 Reviewed-on: https://chromium-review.googlesource.com/289855 Reviewed-by: Zeping Qiu <zqiu@chromium.org> Commit-Queue: Zeping Qiu <zqiu@chromium.org> Tested-by: Zeping Qiu <zqiu@chromium.org>
/system/connectivity/shill/cellular/cellular_unittest.cc
|
2f6c78991e37f5fa71f2ba4d1669be73f0a6dfd4 |
|
16-Jun-2015 |
Paul Stewart <pstew@chromium.org> |
shill: Cellular mocks and tests: Switch pointer/ref spacing Switch to Chrome style spacing. BUG=chromium:501026 TEST=Unit tests Change-Id: I2dd1ebe0afa6d6a6fb7d51d8b3968cd1839b64ac Reviewed-on: https://chromium-review.googlesource.com/278071 Reviewed-by: Rebecca Silberstein <silberst@chromium.org> Commit-Queue: Paul Stewart <pstew@chromium.org> Tested-by: Paul Stewart <pstew@chromium.org>
/system/connectivity/shill/cellular/cellular_unittest.cc
|
8e0151e84f077cc9c0646d5bafd925ed235a1c12 |
|
04-Jun-2015 |
Peter Qiu <zqiu@chromium.org> |
shill: refactor DHCPConfig To better support DHCPv6 configurations, move IPv4 specific code from DHCPConfig to the newly created DHCP4Config. The idea is to have the base class DHCPConfig supports the basic interaction with dhcpcd daemon, and the derived class (IP specific) for processing events and parsing IP configurations. An upcoming CL will add a new class DHCP6Config for processing IPv6 configurations. BUG=chromium:496302 TEST=USE="asan clang" FEATURES=test emerge-$BOARD shill TEST=Run network_Dhcp* client tests and wifi_matfunc suite Change-Id: I1f23ec46a52b42fccf7bbc8906c5f5e506f2d1c8 Reviewed-on: https://chromium-review.googlesource.com/275274 Tested-by: Zeping Qiu <zqiu@chromium.org> Reviewed-by: mukesh agrawal <quiche@chromium.org> Commit-Queue: Zeping Qiu <zqiu@chromium.org>
/system/connectivity/shill/cellular/cellular_unittest.cc
|
675d0b0f04936050a357722f52dc078a3ab671d8 |
|
03-Jun-2015 |
Peter Qiu <zqiu@chromium.org> |
shill: move dhcp codes to dhcp directory Number of files related to dhcp will increase significantly after refactoring DHCPConfig and adding support for DHCPv6. So move these files to a dedicated directory. BUG=chromium:496302 TEST=USE="asan clang" FEATURES=test emerge-$BOARD shill Change-Id: I7f47365158fc5e1d902946dc3403720402f9b6ad Reviewed-on: https://chromium-review.googlesource.com/275019 Reviewed-by: Zeping Qiu <zqiu@chromium.org> Commit-Queue: Zeping Qiu <zqiu@chromium.org> Tested-by: Zeping Qiu <zqiu@chromium.org>
/system/connectivity/shill/cellular/cellular_unittest.cc
|
7d378eab9550dab43d7b2ac74b2f885a6de0bd04 |
|
24-Mar-2015 |
Jason Simmons <jsimmons@google.com> |
shill: ensure that the reference to the ppp_device_ is dropped in StopPPP. When the PPP daemon terminates, Cellular::OnPPPDied and OnPPPDisconnected are called. OnPPPDisconnected releases the ppp_task_ and then calls Disconnect/StopPPP. StopPPP was exiting early if ppp_task_ is null. Since in this case it is null, StopPPP did not drop the reference to ppp_device_. The DBus object associated with the ppp_device_ remained registered. So when PPP reconnects, Shill will fail an assertion because the new PPP device duplicates the path of an existing DBus object. This patch ensures that the OnPPPDied flow will drop the refernece to the ppp_device_. BUG=b:19666697 TEST=Ran "killall -HUP pppd" and verified that Shill could survive pppd dying. Change-Id: Id565f39fc7054ca5a245fe872d14ea57a21b01fc Reviewed-on: https://chromium-review.googlesource.com/262056 Reviewed-by: mukesh agrawal <quiche@chromium.org> Commit-Queue: mukesh agrawal <quiche@chromium.org> Tested-by: mukesh agrawal <quiche@chromium.org>
/system/connectivity/shill/cellular/cellular_unittest.cc
|
0951ccbfca977a9cf218b2e4308aa26fb4d06ef9 |
|
10-Dec-2014 |
Alex Vakulenko <avakulenko@chromium.org> |
Update libchrome to r307740 and fix build errors Updated libchrome, libchrome_crypto, metrics, feedback to the latest revisions from Chrome (r307740). Fixed build breaks due to the changes in upstream code: - scope_ptr no longer needs explicit PassAs<T>() calls. - scope_ptr<T> no longer has implicit conversion to T*. Must use scope_ptr<T>::get() instead. - base/file_util.h moved to base/files/file_util.h - ARRAYSIZE_UNSAFE() removed in favor of arraysize() - base::AppendToFile() and base::WriteFileDescriptor() now return bool instead of the number of bytes written. - dbus::Bus::AddFilterFunction() now returns void. - C++11 features are enabled in libchromeos, so all targets linking with it now have to support C++11 - OVERRIDE macro is removed in favor of native C++11 'override' keyword. BUG=chromium:416628, chromium:411508 TEST=Build the world on x86, x64, ARM. The following builders were tried: x86-generic-full amd64-generic-full arm-generic-full amd64-generic-asan daisy-full nyan-full pre-cq-group daisy-release-group sandybridge-release-group pineview-release-group CQ-DEPEND=CL:234450,CL:234980 Change-Id: I374bebe2211d533c4431c82efb8be1cdcb1f405d Reviewed-on: https://chromium-review.googlesource.com/234440 Reviewed-by: Bertrand Simonnet <bsimonnet@chromium.org> Tested-by: Alex Vakulenko <avakulenko@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
/system/connectivity/shill/cellular/cellular_unittest.cc
|
c54afe521739065a5d77e7c049acdb5e603f0592 |
|
05-Nov-2014 |
Ben Chan <benchan@chromium.org> |
shill: cellular: Move cellular code to its own sub-directory. This CL is part of a series of CLs, which aim to reorganzie shill's flat source code structure into a more modular form by moving technology specific code into their own sub-directories. BUG=chromium:433419 TEST=`USE='cellular' FEATURES=test emerge-$BOARD shill` TEST=`USE='cellular clang asan' FEATURES=test emerge-$BOARD shill` Change-Id: I783e85d8c606426ce2ded093588c1243fd0eef97 Reviewed-on: https://chromium-review.googlesource.com/229799 Reviewed-by: Thieu Le <thieule@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Commit-Queue: Ben Chan <benchan@chromium.org> Tested-by: Ben Chan <benchan@chromium.org>
/system/connectivity/shill/cellular/cellular_unittest.cc
|