Explicitly return a const reference in mocks
Avoid returning a copy of the data from the mocks by setting an explicit return type before returning the static variable. Otherwise the address sanitizer will fail referencing a non-static member. Bug: 187825293 Test: Manually build. Change-Id: I71282f17df35b09738948398efe3caeaadf63533
Loading
Please register or sign in to comment