The Wayback Machine - https://web.archive.org/web/20230815202955/https://github.com/google/physical-web/commit/19afdea7a952a37b8eadffeb03182fd5dea3e8a3
Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Browse filesBrowse the repository at this point in the history
Unit tests for Utils
  • Loading branch information
@hayesjordan
hayesjordan committed Sep 23, 2016
1 parent d51cbdecommit 19afdea
Show file tree
Hide file tree
Showing 4 changed files with 545 additions and 2 deletions.
2 changes: 2 additions & 0 deletions android/PhysicalWeb/app/build.gradle
Expand Up@@ -76,6 +76,8 @@ dependencies {
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.youview:tinydnssd:1.2.7'
compile 'org.nanohttpd:nanohttpd:2.3.0'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:1.10.19'

checkstyleRules files('config/checkstyle/checkstyle.xml')
findbugsRules files('config/findbugs/exclude-filter.xml')
Expand Down
Expand Up@@ -205,15 +205,15 @@ public static void hideAllMenuItems(Menu menu) {

/**
* Check if URL has been favorited.
* @param siteUrl.
* @param siteUrl
*/
publicstaticbooleanisFavorite(StringsiteUrl) {
returnmFavoriteUrls.contains(siteUrl);
}

/**
* Toggles favorite status.
* @param siteUrl.
* @param siteUrl
*/
publicstaticvoidtoggleFavorite(StringsiteUrl) {
if (isFavorite(siteUrl)) {
Expand DownExpand Up@@ -506,6 +506,8 @@ public void connect(Context context) {
*/
publicstaticStringformatEndpointForSharedPrefernces(StringpwsUrl, intpwsVersion,
StringapiKey) {
pwsUrl = pwsUrl == null ? "" : pwsUrl;
apiKey = apiKey == null ? "" : apiKey;
returnpwsUrl + SEPARATOR + pwsVersion + SEPARATOR + apiKey;
}

Expand Down

0 comments on commit 19afdea

Please sign in to comment.
close