Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2999)

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java

Issue 2187033002: [Offline Pages] Make querying by client ID support a list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java
index ef45409ef93d84662192ba759f170441bc67c600..78c2e4c9a0c9fffb6273007578259d52aa088f4c 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java
@@ -275,14 +275,17 @@ public class OfflinePageBridgeTest extends ChromeActivityTestCaseBase<ChromeActi
});
}
- private OfflinePageItem getPageByClientId(final ClientId clientId) throws InterruptedException {
+ private OfflinePageItem getPageByClientId(ClientId clientId) throws InterruptedException {
final OfflinePageItem[] result = {null};
final Semaphore semaphore = new Semaphore(0);
+ final List<ClientId> clientIdList = new ArrayList<>();
+ clientIdList.add(clientId);
+
ThreadUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
- mOfflinePageBridge.getPagesByClientId(
- clientId, new Callback<List<OfflinePageItem>>() {
+ mOfflinePageBridge.getPagesByClientIds(
+ clientIdList, new Callback<List<OfflinePageItem>>() {
@Override
public void onResult(List<OfflinePageItem> items) {
if (!items.isEmpty()) {
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698