summaryrefslogtreecommitdiff
path: root/test-mock/src/android/test
diff options
context:
space:
mode:
authorMakoto Onuki <omakoto@google.com>2019-10-11 20:19:58 -0700
committerMakoto Onuki <omakoto@google.com>2019-10-14 11:09:00 -0700
commite5449f0b34b58e7ebe6933609d3cef78930400be (patch)
tree70f6a06c6b84c85b4c694070402981034da334d9 /test-mock/src/android/test
parent701edd6c0cc8be93b0ca0cf60fced75cc19363f7 (diff)
Explicitly take flags in createContextAsUser()
Bug: 142472686 Test: atest android.content.cts.ContextTest#testCreateContextAsUser Change-Id: Id2e3d5ffe5887a4916e0872a7e85d62cbb439744
Diffstat (limited to 'test-mock/src/android/test')
-rw-r--r--test-mock/src/android/test/mock/MockContext.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-mock/src/android/test/mock/MockContext.java b/test-mock/src/android/test/mock/MockContext.java
index fcd4701c7630..5053ceedc703 100644
--- a/test-mock/src/android/test/mock/MockContext.java
+++ b/test-mock/src/android/test/mock/MockContext.java
@@ -758,7 +758,7 @@ public class MockContext extends Context {
/** {@hide} */
@Override
- public Context createContextAsUser(UserHandle user) {
+ public Context createContextAsUser(UserHandle user, @CreatePackageOptions int flags) {
throw new UnsupportedOperationException();
}