6789bcbfbc2cbc7eec7713513b4b2038f7f8c52c |
|
26-Oct-2015 |
Peter Qiu <zqiu@google.com> |
Do not use singleton for mock objects Android complains about memory leakage when using singleton for mock objects, and it is not really necessary to use singleton for mock objects either. So remove the singleton from those objects. While there, update the binary path for "sleep" on Android, which is used for starting a dummy process in the test. Bug: 25186794 TEST=Run apmanager_test on Brillo board TEST=Run unittests for Chrome OS Change-Id: Ifb5a5c6876aa67a94411d823109c14a209a46d86
/system/connectivity/apmanager/mock_event_dispatcher.cc
|
326b6cfba5ab73c9e41a7585d1bc95871631122a |
|
02-Sep-2015 |
Peter Qiu <zqiu@google.com> |
Re-license apmanager 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, the NOTICE was replaced with a copy of the Apache2 license and MODULE_LICENSE_* file was updated. BUG=23619937 TEST=grep 'Chromium OS Authors' doesn't find anything. Change-Id: I4ade0a15ff18ab159d4a2f99525b62c780b13c89
/system/connectivity/apmanager/mock_event_dispatcher.cc
|
bfd410e07ef8e783a2a2aca9fa4480d20e955d16 |
|
10-Jan-2015 |
Peter Qiu <zqiu@chromium.org> |
apmanager: specify control interface path for hostapd Configure control interface path for hostapd. This allows the apmanager daemon to communicate with hostapd through the control interface, mainly for event notifications. Also added EventDispatcher class for dispatching tasks to the current message loop, and uses MockEventDispatcher for unittests. BUG=chromium:431759 TEST=USE="asan clang" FEATURES=test emerge-$BOARD apmanager Manual Test: 1. Start AP service on x86 (x86-alex), amd64 (stumpy), and arm (peach_pit) platforms, verify control interface file is created for the network interface that's used for hostapd. For example, "/var/run/apmanager/hostapd/ctrl_iface/uap0" Change-Id: Id4567021ca0b5ec4cb9d7804583cc6b88379a74f Reviewed-on: https://chromium-review.googlesource.com/240031 Reviewed-by: Paul Stewart <pstew@chromium.org> Commit-Queue: Zeping Qiu <zqiu@chromium.org> Trybot-Ready: Zeping Qiu <zqiu@chromium.org> Tested-by: Zeping Qiu <zqiu@chromium.org>
/system/connectivity/apmanager/mock_event_dispatcher.cc
|