diff options
| author | Lorenzo Colitti <lorenzo@google.com> | 2017-09-04 18:07:56 +0900 |
|---|---|---|
| committer | Lorenzo Colitti <lorenzo@google.com> | 2017-09-05 12:50:42 +0900 |
| commit | 9a65ac6a69575ed7c20d30faa2f74839c4ec2aed (patch) | |
| tree | 5a6bc13365e312553f7a92d845088ad213e641e9 /server/TetherControllerTest.cpp | |
| parent | 5192bf770acad258e24bfcf8984e16734a2839dd (diff) | |
Swap TX and RX in addForwardChainStats for clarity.
Bug: 32163131
Bug: 64995262
Test: netd_{unit,integration}_test pass
Test: tethering data usage UI reflects actual data usage
Change-Id: Icf5b66972d91e9e45e40d7b4989a15f970a78461
Diffstat (limited to 'server/TetherControllerTest.cpp')
| -rw-r--r-- | server/TetherControllerTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/TetherControllerTest.cpp b/server/TetherControllerTest.cpp index 5043d124..362af2f2 100644 --- a/server/TetherControllerTest.cpp +++ b/server/TetherControllerTest.cpp @@ -245,8 +245,8 @@ TEST_F(TetherControllerTest, TestGetTetherStats) { // IPv4 and IPv6 counters are properly added together. addIptablesRestoreOutput(kIPv4TetherCounters, kIPv6TetherCounters); - TetherStats expected0("wlan0", "rmnet0", 10002373, 10026, 20002002, 20027); - TetherStats expected1("bt-pan", "rmnet0", 107471, 1040, 1708806, 1450); + TetherStats expected0("wlan0", "rmnet0", 20002002, 20027, 10002373, 10026); + TetherStats expected1("bt-pan", "rmnet0", 1708806, 1450, 107471, 1040); StatusOr<TetherStatsList> result = mTetherCtrl.getTetherStats(); ASSERT_TRUE(isOk(result)); TetherStatsList actual = result.value(); @@ -270,7 +270,7 @@ TEST_F(TetherControllerTest, TestGetTetherStats) { counterLines.resize(4); std::string counters = Join(counterLines, "\n") + "\n"; addIptablesRestoreOutput(counters, counters); - TetherStats expected1_0("wlan0", "rmnet0", 4746, 52, 4004, 54); + TetherStats expected1_0("wlan0", "rmnet0", 4004, 54, 4746, 52); result = mTetherCtrl.getTetherStats(); ASSERT_TRUE(isOk(result)); actual = result.value(); |
