Bug 1302601 - Fix broken tests - poor method override. r=ahunt, a=test-only
authorGrigory Kruglov <gkruglov@mozilla.com>
Fri, 23 Sep 2016 13:27:45 -0700
changeset 355756 82908a457460732127a3790a75ba56459792cec7
parent 355755 57257bd35a87af27775217e6b722db268deb9d4f
child 355757 36e4081424b4d00ba6cdcd9e0f521856e4bda9a6
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahunt, test-only
bugs1302601
milestone51.0a2
Bug 1302601 - Fix broken tests - poor method override. r=ahunt, a=test-only MozReview-Commit-ID: DX2gTqXngiq
mobile/android/tests/background/junit4/src/org/mozilla/gecko/db/BrowserProviderHistoryVisitsTestBase.java
--- a/mobile/android/tests/background/junit4/src/org/mozilla/gecko/db/BrowserProviderHistoryVisitsTestBase.java
+++ b/mobile/android/tests/background/junit4/src/org/mozilla/gecko/db/BrowserProviderHistoryVisitsTestBase.java
@@ -49,17 +49,17 @@ public class BrowserProviderHistoryVisit
         return baseUri.buildUpon().appendQueryParameter(BrowserContract.PARAM_IS_TEST, "1").build();
     }
 
     /* package-private */  Uri insertHistoryItem(String url, String guid) throws RemoteException {
         return insertHistoryItem(url, guid, System.currentTimeMillis(), null, null);
     }
 
     /* package-private */  Uri insertHistoryItem(String url, String guid, Long lastVisited, Integer visitCount) throws RemoteException {
-        return insertHistoryItem(url, guid, System.currentTimeMillis(), null, null);
+        return insertHistoryItem(url, guid, lastVisited, visitCount, null);
     }
 
     /* package-private */  Uri insertHistoryItem(String url, String guid, Long lastVisited, Integer visitCount, String title) throws RemoteException {
         ContentValues historyItem = new ContentValues();
         historyItem.put(BrowserContract.History.URL, url);
         if (guid != null) {
             historyItem.put(BrowserContract.History.GUID, guid);
         }