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.java233 final TestContext testContext = new TestContext(mockResolver, getContext()); in testAuthorityParsing() local
250 SyncStorageEngine engine = SyncStorageEngine.newTestInstance(testContext); in testAuthorityParsing()
335 final TestContext testContext = new TestContext(mockResolver, getContext()); in testListenForTicklesParsing() local
344 SyncStorageEngine engine = SyncStorageEngine.newTestInstance(testContext); in testListenForTicklesParsing()
364 final TestContext testContext = new TestContext(mockResolver, getContext()); in testAuthorityRenaming() local
380 File syncDir = new File(new File(testContext.getFilesDir(), "system"), "sync"); in testAuthorityRenaming()
387 SyncStorageEngine engine = SyncStorageEngine.newTestInstance(testContext); in testAuthorityRenaming()
408 final TestContext testContext = new TestContext(mockResolver, getContext()); in testSyncableMigration() local
420 File syncDir = new File(new File(testContext.getFilesDir(), "system"), "sync"); in testSyncableMigration()
427 SyncStorageEngine engine = SyncStorageEngine.newTestInstance(testContext); in testSyncableMigration()
/frameworks/base/test-runner/src/android/test/
DAndroidTestRunner.java185 Context testContext = mInstrumentation == null ? mContext : mInstrumentation.getContext(); in runTest() local
187 setContextIfAndroidTestCase(testCase, mContext, testContext); in runTest()
194 private void setContextIfAndroidTestCase(Test test, Context context, Context testContext) { in setContextIfAndroidTestCase() argument
197 ((AndroidTestCase) test).setTestContext(testContext); in setContextIfAndroidTestCase()