-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b625aa6
commit 22f6585
Showing
4 changed files
with
39 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ id getCarplayCADisplay(void) | |
return display; | ||
} | ||
} | ||
|
||
return nil; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function assert_not_null(cond, desc) { | ||
if (typeof cond === "undefined" || cond === null) { | ||
[NSException raise:@"Carplay Test Failed" format:desc]; | ||
} | ||
} | ||
|
||
function test_app_library_includes_all_apps() | ||
{ | ||
// When an application library is created | ||
appLibrary = [CARApplication _newApplicationLibrary]; | ||
assert_not_null(appLibrary, @"_newApplicationLibrary is NULL"); | ||
|
||
// It includes apps that are normally excluded/unsupported | ||
appInfo = [appLibrary applicationInfoForBundleIdentifier: @"com.netflix.Netflix"]; | ||
assert_not_null(appInfo, @"app library did not include unsupported apps"); | ||
} | ||
|
||
test_app_library_includes_all_apps(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters