List of usage examples for android.test RenamingDelegatingContext makeExistingFilesAndDbsAccessible
public void makeExistingFilesAndDbsAccessible()
From source file:com.google.android.apps.authenticator.testability.DependencyInjector.java
/** * Clears any state and configures this injector to provide objects that are suitable for * integration testing.// w w w.ja v a 2 s. c o m */ // @VisibleForTesting public static synchronized void resetForIntegrationTesting(Context context) { if (context == null) { throw new NullPointerException("context == null"); } close(); sMode = Mode.INTEGRATION_TEST; RenamingDelegatingContext renamingContext = new RenamingDelegatingContext(context, "test_"); renamingContext.makeExistingFilesAndDbsAccessible(); sContext = new SharedPreferencesRenamingDelegatingContext(renamingContext, "test_"); PreferenceManager.getDefaultSharedPreferences(sContext).edit().clear().commit(); }