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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeBrowserProvider.java

Issue 11784028: Add VisibleForTesting to content/public/android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase with the latest VisibleForTesting addition. Created 7 years, 11 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 | « no previous file | content/content.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/ChromeBrowserProvider.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeBrowserProvider.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeBrowserProvider.java
index a8e91e6453045385e57c8ea7220477389e06d55f..72f1158e8ceab3f305e1fb036c2144b6676a33f9 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeBrowserProvider.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeBrowserProvider.java
@@ -29,6 +29,8 @@ import android.provider.Browser.SearchColumns;
import android.text.TextUtils;
import android.util.Log;
+import com.google.common.annotations.VisibleForTesting;
+
import org.chromium.base.CalledByNative;
import org.chromium.base.CalledByNativeUnchecked;
import org.chromium.base.ThreadUtils;
@@ -724,8 +726,7 @@ public class ChromeBrowserProvider extends ContentProvider {
private byte[] mThumbnail;
/** Used to pass structured data back from the native code. */
- // TODO(leandrogracia): remove public when VisibleForTesting works.
- // @VisibleForTesting
+ @VisibleForTesting
public BookmarkNode(long id, Type type, String name, String url, BookmarkNode parent) {
Avi (use Gerrit) 2013/01/08 03:10:29 Uh, the TODO said to remove public. Was it incorre
aruslan 2013/01/08 03:48:28 Yes; judging from the name I assumed that there is
mId = id;
mName = name;
@@ -789,8 +790,7 @@ public class ChromeBrowserProvider extends ContentProvider {
* <p>
* Used solely by the native code.
*/
- // TODO(leandrogracia): remove public when VisibleForTesting works.
- // @VisibleForTesting
+ @VisibleForTesting
@CalledByNativeUnchecked("BookmarkNode")
public void addChild(BookmarkNode child) {
mChildren.add(child);
@@ -840,14 +840,12 @@ public class ChromeBrowserProvider extends ContentProvider {
return new BookmarkNode(id, Type.values()[type], name, url, parent);
}
- // TODO(leandrogracia): remove public when VisibleForTesting works.
- // @VisibleForTesting
+ @VisibleForTesting
public void setFavicon(byte[] favicon) {
mFavicon = favicon;
}
- // TODO(leandrogracia): remove public when VisibleForTesting works.
- // @VisibleForTesting
+ @VisibleForTesting
public void setThumbnail(byte[] thumbnail) {
mThumbnail = thumbnail;
}
@@ -866,8 +864,7 @@ public class ChromeBrowserProvider extends ContentProvider {
getHierarchyRoot().writeNodeContentsRecursive(dest);
}
- // TODO(leandrogracia): remove public when VisibleForTesting works.
- // @VisibleForTesting
+ @VisibleForTesting
public BookmarkNode getHierarchyRoot() {
BookmarkNode root = this;
while (root.parent() != null) {
« no previous file with comments | « no previous file | content/content.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698