diff options
| author | Maciej Żenczykowski <maze@google.com> | 2021-03-16 15:55:50 -0700 |
|---|---|---|
| committer | Maciej Żenczykowski <maze@google.com> | 2021-03-17 20:20:32 -0700 |
| commit | 6fc5882cc2c4b9f6a837f272c77ce3fa2313dec0 (patch) | |
| tree | d50c0756e236d7fb7fe9622d4077ca03791cd635 /server/TetherControllerTest.cpp | |
| parent | 6f528dd01fc5e80a6590ef729ed9302b11fa7fb6 (diff) | |
TetherController - remove everything related to TetherOffloadStats
These are no longer used due to move to tethering mainline module.
Test: atest, TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I1f0f19724d343c12b496755073d7213f8f7f5099
Diffstat (limited to 'server/TetherControllerTest.cpp')
| -rw-r--r-- | server/TetherControllerTest.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/server/TetherControllerTest.cpp b/server/TetherControllerTest.cpp index 71494e9d..e700f605 100644 --- a/server/TetherControllerTest.cpp +++ b/server/TetherControllerTest.cpp @@ -41,21 +41,10 @@ using android::base::StringPrintf; using android::netdutils::StatusOr; using TetherStats = android::net::TetherController::TetherStats; using TetherStatsList = android::net::TetherController::TetherStatsList; -using TetherOffloadStats = android::net::TetherController::TetherOffloadStats; -using TetherOffloadStatsList = android::net::TetherController::TetherOffloadStatsList; namespace android { namespace net { -// Comparison for TetherOffloadStats. Need to override operator== because class TetherOffloadStats -// doesn't have one. -// TODO: once C++20 is used, use default operator== in TetherOffloadStats and remove the overriding -// here. -bool operator==(const TetherOffloadStats& lhs, const TetherOffloadStats& rhs) { - return lhs.ifIndex == rhs.ifIndex && lhs.rxBytes == rhs.rxBytes && lhs.txBytes == rhs.txBytes && - lhs.rxPackets == rhs.rxPackets && lhs.txPackets == rhs.txPackets; -} - class TetherControllerTest : public IptablesBaseTest { public: TetherControllerTest() { @@ -65,16 +54,6 @@ public: protected: TetherController mTetherCtrl; - std::string toString(const TetherOffloadStatsList& statsList) { - std::string result; - for (const auto& stats : statsList) { - result += StringPrintf("%d, %" PRId64 ", %" PRId64 ", %" PRId64 ", %" PRId64 "\n", - stats.ifIndex, stats.rxBytes, stats.rxPackets, stats.txBytes, - stats.txPackets); - } - return result; - } - int setDefaults() { return mTetherCtrl.setDefaults(); } |
