commit | 27fa2b850ad21a9705669ea371ec802d8a2a50a8 | [log] [tgz] |
---|---|---|
author | Chenbo Feng <fengc@google.com> | Mon Mar 19 11:51:54 2018 -0700 |
committer | Chenbo Feng <fengc@google.com> | Tue Mar 20 12:09:52 2018 -0700 |
tree | a5dcf2e17d3797b2da0fa3d5fda64e72e63058d0 | |
parent | d425ec8aea272a132f79493bdb36e793bcd05a85 [diff] |
Fixing the BandwidthController unit test The BandwidthController unit test cannot directly use gCtrl->trafficCtrl to check if the bpf stats feature is avaliable. Rewrite the getBpfStatsStatus() function of BandwidthController so it is also functioning when in BandwidthController unit tests. Bug: 72111305 Test: ./netd_unit_test Change-Id: Ie60ed384b7f8d42b8e1f3417949d46895bea6572 (cherry picked from aosp commit a121e20ec1f3bd3ce05fb90da1eaba3bef5ed568)