History log of /system/connectivity/wificond/tests/scanner_unittest.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8f574ac480a39accc9fe5a5f065f4212e8175bd5 28-Jul-2017 Sohani Rao <sohanirao@google.com> Wificond ScannerImpl Unit testing Offload HAL

Wificond ScannerImpl interfaces with Offload HAL to invoke APIs to
perform disconnected mode PNO scans. This CL tests behavior of
ScannerImpl.

Bug: 32842314
Test: Unit test and VTS
Change-Id: I070d17c98ce90a9aeded80eac7135d02e36f0231
/system/connectivity/wificond/tests/scanner_unittest.cpp
69f61f7fd15d44dd32a107d850f05f0eb933ab2c 26-Jul-2017 Sohani Rao <sohanirao@google.com> Wificond: Create mocks of Offload Scan objects

Create objects for Offload HAL to enable testing of Scanner Impl

Test: Unit tests
Bug: 32842314
Change-Id: Iea881dbbef0f6dc53b87f8ea24acd3c3e347f902
/system/connectivity/wificond/tests/scanner_unittest.cpp
dfbe7e4e12824527fac840391f31d2b4a4578e3e 19-Jul-2017 Ningyuan Wang <nywang@google.com> Support scan plan attribute for scheduled scan

This adds the support of the scan plan attribute.
With kernel updates, driver can no longer diffrentiate interval
attribute from single scan plan attribute, so driver's pno scan
back off logic cannot be triggered in that case.
To solve the PNO back-off problem, this CL allows wificond to explicitly
specify scan plans (if the driver supports it). With explicit scan
plans, the driver will have the information it needs to back-off PNO
scans.

Bug: 63837760
Test: compile, unit tests
Test: Manually test that pno scan works on multiple devices
Test: Integration sanity test

Change-Id: Ic7e38caa482a2d72f45bf3c8177fa656e534db08
/system/connectivity/wificond/tests/scanner_unittest.cpp
7a3d8ddff0ea3bca99fb3e554651e1541a93121e 11-Jul-2017 Ningyuan Wang <nywang@google.com> ScannerImpl: Add unit tests for scheduled scans

This patch adds unit tests for scheduled scans.
In order to do that, this also moves the isOffloadScanSupprted()
out of OffloadScanManager to OffloadServiceUtils. By injecting
MockOffloadServiceUtils to ScannerImpl, we can test either offload
supported or not supported cases.

Bug: 33452931
Test: compile, unit tests
Test: manual test that offload scan is not enabled by mistake.
This is done by checking manually inserted logs.

Change-Id: I6c78df78605321013676e5f4578026f21d953e3b
/system/connectivity/wificond/tests/scanner_unittest.cpp
c658fa0ae13f9b4f89e29f7057266369bd3e114b 11-Jul-2017 Ningyuan Wang <nywang@google.com> More unit tests for ScannerImpl

This adds unit tests for abortScan() and getScanResults().

Bug: 33452931
Test: compile, unit tests

Change-Id: I9920022c02ac18bdd0b1cd045682c63763361065
/system/connectivity/wificond/tests/scanner_unittest.cpp
3c023a0e38c0110f1fcabbf42686b66832e14cc0 23-Jun-2017 Ningyuan Wang <nywang@google.com> Create unittest for ScannerImpl

This creates the unit test suite for class ScannerImpl and
add a few test cases for single scan.

Bug: 33452931
Test: compile, unit tests

Change-Id: Ib0584068aa886769b50860309224e670f3415fc8
/system/connectivity/wificond/tests/scanner_unittest.cpp