Home
last modified time | relevance | path

Searched refs:testContext (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/content/
DSyncStorageEngineTest.java219 final TestContext testContext = new TestContext(mockResolver, getContext()); in testAuthorityParsing() local
228 File syncDir = new File(new File(testContext.getFilesDir(), "system"), "sync"); in testAuthorityParsing()
235 SyncStorageEngine engine = SyncStorageEngine.newTestInstance(testContext); in testAuthorityParsing()
317 final TestContext testContext = new TestContext(mockResolver, getContext()); in testAuthorityRenaming() local
333 File syncDir = new File(new File(testContext.getFilesDir(), "system"), "sync"); in testAuthorityRenaming()
340 SyncStorageEngine engine = SyncStorageEngine.newTestInstance(testContext); in testAuthorityRenaming()
361 final TestContext testContext = new TestContext(mockResolver, getContext()); in testSyncableMigration() local
373 File syncDir = new File(new File(testContext.getFilesDir(), "system"), "sync"); in testSyncableMigration()
380 SyncStorageEngine engine = SyncStorageEngine.newTestInstance(testContext); in testSyncableMigration()
/frameworks/base/test-runner/src/android/test/
DAndroidTestRunner.java164 Context testContext = mInstrumentation == null ? mContext : mInstrumentation.getContext(); in runTest() local
166 setContextIfAndroidTestCase(testCase, mContext, testContext); in runTest()
173 private void setContextIfAndroidTestCase(Test test, Context context, Context testContext) { in setContextIfAndroidTestCase() argument
176 ((AndroidTestCase) test).setTestContext(testContext); in setContextIfAndroidTestCase()