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

Unified Diff: sync/test/android/javatests/src/org/chromium/sync/test/util/MockAccountManager.java

Issue 1282603005: Convert ChromeSyncShell to use ChromePublic infrastructure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: re-land version Created 5 years, 4 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
Index: sync/test/android/javatests/src/org/chromium/sync/test/util/MockAccountManager.java
diff --git a/sync/test/android/javatests/src/org/chromium/sync/test/util/MockAccountManager.java b/sync/test/android/javatests/src/org/chromium/sync/test/util/MockAccountManager.java
index a9f8239c1e1a59afd78389bd4620b5367fda6c73..532abe1dbf6783c0be21eba7c3946f7119489719 100644
--- a/sync/test/android/javatests/src/org/chromium/sync/test/util/MockAccountManager.java
+++ b/sync/test/android/javatests/src/org/chromium/sync/test/util/MockAccountManager.java
@@ -27,6 +27,7 @@ import android.os.Handler;
import android.text.TextUtils;
import org.chromium.base.Log;
+import org.chromium.base.VisibleForTesting;
import org.chromium.sync.signin.AccountManagerDelegate;
import org.chromium.sync.signin.AccountManagerHelper;
@@ -88,6 +89,7 @@ public class MockAccountManager implements AccountManagerDelegate {
private final SingleThreadedExecutor mExecutor;
+ @VisibleForTesting
public MockAccountManager(Context context, Context testContext, Account... accounts) {
mContext = context;
// The manifest that is backing testContext needs to provide the
@@ -134,6 +136,7 @@ public class MockAccountManager implements AccountManagerDelegate {
}
}
+ @VisibleForTesting
public boolean addAccountHolderExplicitly(AccountHolder accountHolder) {
return addAccountHolderExplicitly(accountHolder, false);
}
@@ -154,6 +157,7 @@ public class MockAccountManager implements AccountManagerDelegate {
return result;
}
+ @VisibleForTesting
public boolean removeAccountHolderExplicitly(AccountHolder accountHolder) {
return removeAccountHolderExplicitly(accountHolder, false);
}

Powered by Google App Engine
This is Rietveld 408576698