commit | 30f2fcddbad56cd9a8895a14127d07efc977ee77 | [log] [tgz] |
---|---|---|
author | Roshan Pius <rpius@google.com> | Fri Jun 23 10:44:06 2017 -0700 |
committer | Roshan Pius <rpius@google.com> | Mon Jun 26 19:01:29 2017 +0000 |
tree | 8bb72ae89ba13268f88b0599ab5595576f74f97c | |
parent | 4a4b1f3169288ab71ed5f0efd8e715624e7f362c [diff] |
WifiStateMachineTest: Use mock IpManager All we need from IpManager object in WifiStateMachineTest is the IpManagerCallback object which can be used to inject events. So, instead of creating a TestIpManager, return a mock IpManager and just capture the incoming callback in the test for injection. Usage of the real IpManager makes these unit tests flaky. Bug: 62842968 Test: Unit tests run reliably now. Change-Id: I3345bf6e101c6502c92fd2785082cfbe1084cefc