diff options
| author | Maciej Żenczykowski <maze@google.com> | 2022-05-31 03:15:12 -0700 |
|---|---|---|
| committer | Maciej Żenczykowski <maze@google.com> | 2022-06-08 01:25:27 +0000 |
| commit | 787de0100e6a19ca60b6421311cb77a6192a1a5f (patch) | |
| tree | bad23c11bb8c8aa900046bfa318524d31f399129 /tests/common/java/android/net/LinkPropertiesTest.java | |
| parent | 8468153edb6658a0855d3973b5b0b2dc3e5dab18 (diff) | |
simplify bpf tests and check type correctness
We notice that:
BpfMap.reset(dupFd_with_cloexec(BpfMap.getMap())
is equivalent to
BpfMap = BpfMap
due to the current implementation of the BpfMap assignment operator.
Except the latter also verifies BpfMap<K,V> template types match.
Bug: 235286176
Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I99fcf77bc6aa360b6a19e22c2cd58d67a1e62976
(cherry picked from commit 55ab87aa4937f562e6952c5b88e90eae6eca41c4)
Merged-In: I99fcf77bc6aa360b6a19e22c2cd58d67a1e62976
Diffstat (limited to 'tests/common/java/android/net/LinkPropertiesTest.java')
0 files changed, 0 insertions, 0 deletions
