Bug 1357639 - part8 : add annotiation @RobocopTarget. r=sebastian

To make sure these functions can be used in robocop test.

MozReview-Commit-ID: KPAKOrg5Ows

--HG--
extra : rebase_source : 13632cef16c96457ce77c01bc4330a9793ab83ad
This commit is contained in:
Alastor Wu 2017-05-02 18:53:40 +08:00
Родитель a947a01211
Коммит b281dab7c7
2 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -963,6 +963,7 @@ public class Tabs implements BundleEventListener {
*
* @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);
}

Просмотреть файл

@ -146,11 +146,13 @@ public class AudioFocusAgent {
}
@VisibleForTesting
@RobocopTarget
public State getAudioFocusState() {
return mAudioFocusState;
}
@VisibleForTesting
@RobocopTarget
public void changeAudioFocus(int focusChange) {
mAfChangeListener.onAudioFocusChange(focusChange);
}