@Test public void isLocalizedContent() { assertFalse(UrlUtils.isLocalizedContent(null)); assertFalse(UrlUtils.isLocalizedContent("mozilla.org")); assertFalse(UrlUtils.isLocalizedContent("http: assertTrue(UrlUtils.isLocalizedContent("about:blank")); assertTrue(UrlUtils.isLocalizedContent(LocalizedContent.URL_ABOUT)); assertTrue(UrlUtils.isLocalizedContent(LocalizedContent.URL_RIGHTS)); }
public static boolean isLocalizedContent(@Nullable String url) { return url != null && (url.equals(LocalizedContent.URL_ABOUT) || url.equals(LocalizedContent.URL_RIGHTS) || url.equals("about:blank")); }
UrlUtils { public static boolean isLocalizedContent(@Nullable String url) { return url != null && (url.equals(LocalizedContent.URL_ABOUT) || url.equals(LocalizedContent.URL_RIGHTS) || url.equals("about:blank")); } }
UrlUtils { public static boolean isLocalizedContent(@Nullable String url) { return url != null && (url.equals(LocalizedContent.URL_ABOUT) || url.equals(LocalizedContent.URL_RIGHTS) || url.equals("about:blank")); }  }
UrlUtils { public static boolean isLocalizedContent(@Nullable String url) { return url != null && (url.equals(LocalizedContent.URL_ABOUT) || url.equals(LocalizedContent.URL_RIGHTS) || url.equals("about:blank")); }  static String normalize(@NonNull String input); static boolean isUrl(String url); static boolean isValidSearchQueryUrl(String url); static boolean isHttpOrHttps(String url); static String createSearchUrl(Context context, String searchTerm); static String stripUserInfo(@Nullable String url); static boolean isPermittedResourceProtocol(@Nullable final String scheme); static boolean isSupportedProtocol(@Nullable final String scheme); static boolean isInternalErrorURL(final String url); static boolean urlsMatchExceptForTrailingSlash(final String url1, final String url2); static String stripCommonSubdomains(@Nullable String host); static String stripScheme(@Nullable String url); static String stripSchemeAndSubDomain(String url); static boolean isLocalizedContent(@Nullable String url); }
UrlUtils { public static boolean isLocalizedContent(@Nullable String url) { return url != null && (url.equals(LocalizedContent.URL_ABOUT) || url.equals(LocalizedContent.URL_RIGHTS) || url.equals("about:blank")); }  static String normalize(@NonNull String input); static boolean isUrl(String url); static boolean isValidSearchQueryUrl(String url); static boolean isHttpOrHttps(String url); static String createSearchUrl(Context context, String searchTerm); static String stripUserInfo(@Nullable String url); static boolean isPermittedResourceProtocol(@Nullable final String scheme); static boolean isSupportedProtocol(@Nullable final String scheme); static boolean isInternalErrorURL(final String url); static boolean urlsMatchExceptForTrailingSlash(final String url1, final String url2); static String stripCommonSubdomains(@Nullable String host); static String stripScheme(@Nullable String url); static String stripSchemeAndSubDomain(String url); static boolean isLocalizedContent(@Nullable String url);  }