summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorFabian Kozynski <kozynski@google.com>2020-10-19 10:54:27 -0400
committerFabian Kozynski <kozynski@google.com>2020-10-19 17:34:48 +0000
commitbcb81913fad148731480c888683964012eca98da (patch)
treee2b6ef731e502cede3f2fa3bd26e1570bda96baa /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent1af66d72f2dbd2adcb2c49578305f850a5b1df61 (diff)
Use null as default argument
This improves mocking it, as the Java code that results in creating the overloads doesn't need to call context.getMainExecutor or context.getUser. As an example, with a mock mDispatcher, calls to `mDispatcher(receiver, filter)` with some configurations of Mockito would fail, as the actual Java method would create the default parameters calling `context.getMainExecutor()` and `context.getUser()`, but `context` is null in the mock. Test: atest SystemUITests Change-Id: Ia97b62134532c60525d1df33023cc2dd99c1f6a8
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions