Bug 715307 - Fix Content provider tests. r=lucasr

This commit is contained in:
Wes Johnston 2012-06-15 09:03:08 -07:00
parent 8a294189a1
commit 49cc8cf3f9

View File

@ -66,6 +66,14 @@ public class testBrowserProviderPerf extends ContentProviderTest {
CharSequence.class, int.class);
}
private void initializeBrowserProvider() throws Exception {
Class browserDBClass = mClassLoader.loadClass("org.mozilla.gecko.db.BrowserDB");
Method initializeMethod =
browserDBClass.getDeclaredMethod("initialize", String.class);
initializeMethod.invoke(null, "default");
}
private void loadContractInfo() throws Exception {
mBookmarksUri = getContentUri("Bookmarks");
mHistoryUri = getContentUri("History");
@ -226,6 +234,8 @@ public class testBrowserProviderPerf extends ContentProviderTest {
public void testBrowserProviderPerf() throws Exception {
setTestType("talos");
initializeBrowserProvider();
loadMobileFolderId();
addTonsOfUrls();