Searched refs:mOpenHelper (Results 1 – 3 of 3) sorted by relevance
49 private MockOpenHelper mOpenHelper; field in SQLiteOpenHelperTest56 mOpenHelper = getOpenHelper(); in setUp()61 mOpenHelper.close(); in tearDown()82 assertFalse(mOpenHelper.hasCalledOnOpen()); in testGetDatabase()84 database = mOpenHelper.getReadableDatabase(); in testGetDatabase()87 assertTrue(mOpenHelper.hasCalledOnOpen()); in testGetDatabase()90 mOpenHelper.resetStatus(); in testGetDatabase()91 assertFalse(mOpenHelper.hasCalledOnOpen()); in testGetDatabase()93 SQLiteDatabase database2 = mOpenHelper.getWritableDatabase(); in testGetDatabase()96 assertFalse(mOpenHelper.hasCalledOnOpen()); in testGetDatabase()[all …]
79 private SQLiteOpenHelper mOpenHelper; field in MockContentProvider136 mOpenHelper = new DatabaseHelper(getContext(), mDbName); in onCreate()143 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()246 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()262 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()344 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()355 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
85 private SQLiteOpenHelper mOpenHelper; field in TestResultsProvider206 mOpenHelper = new TestResultsOpenHelper(getContext()); in onCreate()251 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()270 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()314 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()339 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()