History log of /system/connectivity/wificond/tests/mock_netlink_manager.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
21ff4c7ad0b0ec8da8392c00eedbae022d6e21e5 19-Aug-2016 Ningyuan Wang <nywang@google.com> Get rid of NL80211Packet copying

This CL removes all NL80211Packet copying by introducing the use of
unique_ptr on NL80211Packet objects.

The copy constructor is not explicitly deleted because it helps write
readable unit tests.

BUG=30901326
TEST=compile, unit tests, manual tests

Change-Id: I8dc9b42cacc3e929aa720abbd8ff0a3862b33bd3
/system/connectivity/wificond/tests/mock_netlink_manager.h
919f41d3a1eef713a87d35f99746f64943ca2e69 17-Aug-2016 Ningyuan Wang <nywang@google.com> Pass packet by reference to reduce copy operations

With this change, along with ag/1333902 the copy counter is
reduced from 14 to 5, for the entire booting process.

BUG=30901326
TEST=unit tests

Change-Id: Ie7f46b6ca1663a00d1703d567b2de35259bfd13a
/system/connectivity/wificond/tests/mock_netlink_manager.h
4911e28b6555e42d12027d1b6999654a25feb758 03-Aug-2016 Ningyuan Wang <nywang@google.com> Add unit tests for NetlinkUtils

This creates unit tests for helper class NetlinkUtils.
This also creates mock classes for NetlinkManager and EventLoop.

BUG=30642046
TEST=unit tests and integration tests

Change-Id: Idc3cea812e700af8a1727c380ec92cfc1f364e28
/system/connectivity/wificond/tests/mock_netlink_manager.h
f28bd901d9588058fe4256bbfe1ee720249b9747 01-Aug-2016 Ningyuan Wang <nywang@google.com> Seperate netlink util functions to NL80211Utils

This creates a new clas NetlinkUtils and moves two util
functions GetWiphyIndex() and GetInterfaceName() from
NelinkManager to NetlinkUtils.

BUG=30565670
TEST=unit tests and integration tests

Change-Id: I713d4388e688f5235b7fbf61c7b9ea9341d667db
/system/connectivity/wificond/tests/mock_netlink_manager.h
45a655e6c6ba304c577ee098732ac176aaab311b 28-Jul-2016 Ningyuan Wang <nywang@google.com> Get interface name for server

This CL adds a util function on NetlinkManager for getting
interface name from kernel.

Server uses this function after driver and firmware reloading
to verify the interface is set up correctly.

BUG=29454786
TEST=unit tests and intergration tests

Change-Id: Ib8cea0e7cb744be428ddaf96b6d50f10a6cea255
/system/connectivity/wificond/tests/mock_netlink_manager.h
e6dce59eaa5f1fcbdfb4b3fc6a60d5cd3b522b06 21-Jul-2016 Ningyuan Wang <nywang@google.com> Get wiphy index using NL80211 messages

Add utils functions in NetlinkManager to get wiphy index.
wificond should refresh wiphy index using those utils after
reloading the driver.

BUG=29454786
TEST=compile
TEST=unittests and intergration tests still pass

Change-Id: I303ac6b81ab3650acfb7a823cb0b423f55d373b4
/system/connectivity/wificond/tests/mock_netlink_manager.h