commit | 9c33b8d2d8de4867aafa0f4518ca06ea0014cd06 | [log] [tgz] |
---|---|---|
author | Zhomart Mukhamejanov <zhomart@google.com> | Mon Dec 13 22:12:14 2021 -0800 |
committer | Zhomart Mukhamejanov <zhomart@google.com> | Wed Feb 02 14:59:58 2022 -0800 |
tree | 5c3a62146098d12cce9f3b3cbe48971be53290e8 | |
parent | a61554a4d7cf4d1221d2de5cb5147b5090d1aff9 [diff] |
Add better connectivity publisher tests This CL adds FakeNetworkStatsService that simulates INetworkStatsService. It allows testing the publisher thorougly - transports and oemManaged params, start/end timestamps and fetching netstats for the period of time. Bug: 197905656 Bug: 207175350 Test: atest CarServiceUnitTest:ConnectivityPublisherTest Change-Id: I32233a7241525f9395325fb45363146e416a1a80 Merged-In: I32233a7241525f9395325fb45363146e416a1a80 (cherry picked from commit 0ba7c6d30e88f617bb62322ea714b1811cb428dd)
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.