History log of /system/connectivity/wificond/tests/scanner_unittest.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9d096b2f0027b91e5eed40c0e2482d238cdf7c8a 31-Jan-2018 Roshan Pius <rpius@google.com> wificond: Send DBS scan flags if supported

If the device supports the new DBS scan params then,
a) For single scans, set the scan flag attribute corresponding to the
incoming scan type.
b) For PNO scans, always set the low power scan flag attribute.

Bug: 68335251
Test: ./system/connectivity/wificond/runtests.sh
Change-Id: I9bca3c0dfc4217f9b9c2b9e625863978967ccdbe
/system/connectivity/wificond/tests/scanner_unittest.cpp
c6ecdf8ea59f7de47edfd6161f059b8ab45d1f8f 10-Aug-2017 Ningyuan Wang <nywang@google.com> Support different rssi thresholds for 2g and 5g bands

Bug: 36121542
Test: compile, unit tests
Test: will do integration test

Change-Id: Ia4528cd30eed5e45a661224fd948fad52eb43ac1
/system/connectivity/wificond/tests/scanner_unittest.cpp
629acb02bfa2a0d17aa2f55aa54b50da47a7ed59 12-Oct-2017 Roshan Pius <rpius@google.com> wificond: Move enable/disable Supplicant

Move enable/disable Supplicant to top level wificond Aidl object since
this is used for both STA & AP operations now.

Bug: 69319369
Test: Turn on wifi/softap succesfully.
Test: ./system/connectivity/wificond/runtests.sh
Change-Id: I3c2463f8c2bcb081503103a46188e4ec3e3e6b3e
/system/connectivity/wificond/tests/scanner_unittest.cpp
3e5057cb3858bd8b0d4ea01d1eb86757cced8ce4 24-Oct-2017 Ningyuan Wang <nywang@google.com> wificond: Move get*Channels() APIs

These get*Channels() APIs should be used by java framework
in both client and AP mode.

They are implemented by GetWiphy command which is associated to
a wihpy instead of a interface.

We need to move these APIs to wificond main interface for both
correctness and convienience.

This also removes the corresponding integration test. Since wificond
no longer load/unload driver/fw, we are not able to run and verify
these tests. It's reasonble to remove them for now.

Bug: 35707768
Test: compile, unit tests
Change-Id: I7ba562fbb788a6032832a0ab1ff917b5ba869670
/system/connectivity/wificond/tests/scanner_unittest.cpp
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