mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 715307 - Fix Content provider tests. r=lucasr
This commit is contained in:
parent
8a294189a1
commit
49cc8cf3f9
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user