Bug 1357639 - part8 : add annotiation @RobocopTarget. r=sebastian
☠☠ backed out by 90f4f6a0b80e ☠ ☠
authorAlastor Wu <alwu@mozilla.com>
Tue, 02 May 2017 18:53:40 +0800
changeset 356008 d37e0ce6c7c9c28a0b991cc9d2a34390a127d7a0
parent 356007 99c71dd11632a4a77c12cec16b8f2561f5b0e35d
child 356009 785f1ade7dc2e8cc0b82b6df2eb29d86333337c8
push id31754
push userkwierso@gmail.com
push dateWed, 03 May 2017 00:28:51 +0000
treeherdermozilla-central@5eaf2d70eded [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssebastian
bugs1357639
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1357639 - part8 : add annotiation @RobocopTarget. r=sebastian To make sure these functions can be used in robocop test. MozReview-Commit-ID: KPAKOrg5Ows
mobile/android/base/java/org/mozilla/gecko/Tabs.java
mobile/android/base/java/org/mozilla/gecko/media/AudioFocusAgent.java
--- a/mobile/android/base/java/org/mozilla/gecko/Tabs.java
+++ b/mobile/android/base/java/org/mozilla/gecko/Tabs.java
@@ -958,16 +958,17 @@ public class Tabs implements BundleEvent
     }
 
     /**
      * Looks for an open tab with the given URL.
      * @param url       the URL of the tab we're looking for
      *
      * @return first Tab with the given URL, or null if there is no such tab.
      */
+    @RobocopTarget
     public Tab getFirstTabForUrl(String url) {
         return getFirstTabForUrlHelper(url, null, TabType.BROWSING);
     }
 
     /**
      * Looks for an open tab with the given URL and private state.
      * @param url       the URL of the tab we're looking for
      * @param isPrivate if true, only look for tabs that are private. if false,
--- a/mobile/android/base/java/org/mozilla/gecko/media/AudioFocusAgent.java
+++ b/mobile/android/base/java/org/mozilla/gecko/media/AudioFocusAgent.java
@@ -141,17 +141,19 @@ public class AudioFocusAgent {
 
     private void notifyMediaControlService(String action) {
         Intent intent = new Intent(mContext, MediaControlService.class);
         intent.setAction(action);
         mContext.startService(intent);
     }
 
     @VisibleForTesting
+    @RobocopTarget
     public State getAudioFocusState() {
         return mAudioFocusState;
     }
 
     @VisibleForTesting
+    @RobocopTarget
     public void changeAudioFocus(int focusChange) {
         mAfChangeListener.onAudioFocusChange(focusChange);
     }
 }