commit | c1856de66e77a2653adc1ff76e31295a0d529a77 | [log] [tgz] |
---|---|---|
author | Junyu Lai <junyulai@google.com> | Wed Sep 04 18:45:00 2024 +0800 |
committer | Junyu Lai <junyulai@google.com> | Wed Sep 04 18:48:56 2024 +0800 |
tree | 80283134fd73f5e5e826cb3b1bc999a5f7ee7243 | |
parent | c694c351c05e0909f3b4375abd550ab5fa12a6d1 [diff] |
Throw IllegalStateException when inserting an existing item This commit throws IllegalStateException instead of IllegalArgumentException when inserting an existing item to TestBpfMap to fit the current behavior in the production code. This is safe given that this is only for test and no one is currently check the exception. Test: atest TetheringTests:com.android.networkstack.tethering.BpfCoordinatorTest Bug: 354619988 Change-Id: I1e5c6e99a0d95b44dd556de8805bb16c3d1a4f61