Fix ExternalVibrationTest for parcelable serialization
Use real instances of IBinder to create an IExternalVibrationController before testing the writeToParcel/createFromParcel methods, as they rely on the implementation of Parcel.writeStrongBinder that doesn't work on mocks. Also update the tests to assert on all fields from the restored ExternalVibration, since the equals implementation only relies on the client token. Fix: 291713224 Test: ExternalVibrationTest Change-Id: Ia36cd0cc4dfcabf16af9023fcb266fdcbff21fb0
Loading
Please register or sign in to comment