-
Notifications
You must be signed in to change notification settings - Fork 1
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
unknown
authored and
unknown
committed
Apr 1, 2014
1 parent
e328cfa
commit 52e52da
Showing
3 changed files
with
194 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// setup type of network | ||
mock network medium | ||
|
||
// test network is populated with 4 devices | ||
expect product added 4c494e4e-0026-0f99-1111-ef000004013f | ||
expect product added 4c494e4e-0026-0f99-1112-ef000004013f | ||
expect product added 4c494e4e-0026-0f99-1113-ef000004013f | ||
expect product added 4c494e4e-0026-0f99-1114-ef000004013f | ||
empty | ||
|
||
// test product is added when ds appears on network | ||
mock network create ds 67 | ||
mock network add 67 | ||
expect product added 67 | ||
empty | ||
|
||
// test product is removed when ds disappears from network | ||
mock network remove 67 | ||
expect product removed 67 | ||
empty |
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,117 @@ | ||
// setup type of network | ||
mock network medium | ||
|
||
// test network is populated with 4 devices | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f Group Added | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f open Room Kitchen | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f open Name Sneaky Music DS | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f open SourceIndex 0 | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f open Standby True | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f open Source 0 Playlist Playlist True | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f open Source 1 Radio Radio True | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f open Source 2 UPnP AV UpnpAv False | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f open Source 3 Songcast Receiver True | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f open Source 4 Net Aux NetAux False | ||
|
||
expect 4c494e4e-0026-0f99-1112-ef000004013f Group Added | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Room Sitting Room | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Name Klimax DSM | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open SourceIndex 0 | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Standby True | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Source 0 Playlist Playlist True | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Source 1 Radio Radio True | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Source 2 UPnP AV UpnpAv False | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Source 3 Songcast Receiver True | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Source 4 Net Aux NetAux False | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Source 5 Analog1 Analog True | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Source 6 Analog2 Analog True | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Source 7 Phono Analog True | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Source 8 SPDIF1 Digital True | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Source 9 SPDIF2 Digital True | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Source 10 TOSLINK1 Digital True | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Source 11 TOSLINK2 Digital True | ||
|
||
expect 4c494e4e-0026-0f99-1113-ef000004013f Group Added | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open Room Bedroom | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open Name Kiko DSM | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open SourceIndex 0 | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open Standby True | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open Source 0 Playlist Playlist True | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open Source 1 Radio Radio True | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open Source 2 UPnP AV UpnpAv False | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open Source 3 Songcast Receiver True | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open Source 4 Net Aux NetAux False | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open Source 5 Analog1 Analog True | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open Source 6 Analog2 Analog True | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open Source 7 Phono Analog True | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open Source 8 SPDIF1 Digital True | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open Source 9 SPDIF2 Digital True | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open Source 10 TOSLINK1 Digital True | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open Source 11 TOSLINK2 Digital True | ||
|
||
expect 4c494e4e-0026-0f99-1114-ef000004013f Group Added | ||
expect 4c494e4e-0026-0f99-1114-ef000004013f open Room Dining Room | ||
expect 4c494e4e-0026-0f99-1114-ef000004013f open Name Majik DS | ||
expect 4c494e4e-0026-0f99-1114-ef000004013f open SourceIndex 0 | ||
expect 4c494e4e-0026-0f99-1114-ef000004013f open Standby True | ||
expect 4c494e4e-0026-0f99-1114-ef000004013f open Source 0 Playlist Playlist True | ||
expect 4c494e4e-0026-0f99-1114-ef000004013f open Source 1 Radio Radio True | ||
expect 4c494e4e-0026-0f99-1114-ef000004013f open Source 2 UPnP AV UpnpAv False | ||
expect 4c494e4e-0026-0f99-1114-ef000004013f open Source 3 Songcast Receiver True | ||
expect 4c494e4e-0026-0f99-1114-ef000004013f open Source 4 Net Aux NetAux False | ||
|
||
empty | ||
|
||
// test group is added when ds appears on network | ||
|
||
mock network create ds 67 | ||
mock network add 67 | ||
|
||
expect 67 Group Added | ||
|
||
expect 67 open Room Main Room | ||
expect 67 open Name Mock DS | ||
expect 67 open SourceIndex 0 | ||
expect 67 open Standby True | ||
expect 67 open Source 0 Playlist Playlist True | ||
expect 67 open Source 1 Radio Radio True | ||
expect 67 open Source 2 UPnP AV UpnpAv False | ||
expect 67 open Source 3 Songcast Receiver True | ||
expect 67 open Source 4 Net Aux NetAux False | ||
|
||
empty | ||
|
||
// test group room name changes | ||
mock network update 67 product room Bathroom | ||
expect 67 update Room Bathroom | ||
empty | ||
|
||
// test group name changes | ||
mock network update 67 product name Majik DS | ||
expect 67 update Name Majik DS | ||
empty | ||
|
||
// test group standby changes | ||
mock network update 67 product standby false | ||
expect 67 update Standby False | ||
empty | ||
|
||
// test group source index changes | ||
mock network update 67 product sourceindex 2 | ||
expect 67 update SourceIndex 2 | ||
empty | ||
|
||
// test group source name changes | ||
mock network update 67 product source 0 name My Playlist | ||
expect 67 update Source 0 My Playlist Playlist True | ||
empty | ||
|
||
// test group source visible changes | ||
mock network update 67 product source 4 visible true | ||
expect 67 update Source 4 Net Aux NetAux True | ||
empty | ||
|
||
// test group is removed when ds disappears from network | ||
mock network remove 67 | ||
expect 67 Group Removed | ||
empty |
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,57 @@ | ||
// setup type of network | ||
mock network medium | ||
|
||
// test network is populated with 4 devices | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f Group Added | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f open Sender False | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f Group Added | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Sender False | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f Group Added | ||
expect 4c494e4e-0026-0f99-1113-ef000004013f open Sender False | ||
expect 4c494e4e-0026-0f99-1114-ef000004013f Group Added | ||
expect 4c494e4e-0026-0f99-1114-ef000004013f open Sender False | ||
empty | ||
|
||
mock network update 4c494e4e-0026-0f99-1111-ef000004013f receiver metadata Bedroom ohz://239.255.255.250:51972/4c494e4e-0026-0f99-1113-ef000004013f | ||
empty | ||
|
||
mock network update 4c494e4e-0026-0f99-1111-ef000004013f receiver transportstate Playing | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f update Sender True 4c494e4e-0026-0f99-1113-ef000004013f | ||
empty | ||
|
||
mock network update 4c494e4e-0026-0f99-1111-ef000004013f receiver metadata Sitting Room ohz://239.255.255.250:51972/4c494e4e-0026-0f99-1112-ef000004013f | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f update Sender True 4c494e4e-0026-0f99-1112-ef000004013f | ||
empty | ||
|
||
mock network update 4c494e4e-0026-0f99-1111-ef000004013f receiver transportstate Stopped | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f update Sender False | ||
empty | ||
|
||
mock network update 4c494e4e-0026-0f99-1111-ef000004013f receiver transportstate Playing | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f update Sender True 4c494e4e-0026-0f99-1112-ef000004013f | ||
empty | ||
|
||
// test removing Sitting Room sets Kitchen sender to false | ||
mock network remove 4c494e4e-0026-0f99-1112-ef000004013f | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f update Sender False | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f Group Removed | ||
empty | ||
|
||
// test adding Sitting Room sets Kitchen sender to true | ||
mock network add 4c494e4e-0026-0f99-1112-ef000004013f | ||
expect 4c494e4e-0026-0f99-1111-ef000004013f update Sender True 4c494e4e-0026-0f99-1112-ef000004013f | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f Group Added | ||
expect 4c494e4e-0026-0f99-1112-ef000004013f open Sender False | ||
empty | ||
|
||
|
||
mock network create ds 67 | ||
mock network update 67 product attributes Info Time Volume | ||
mock network add 67 | ||
expect 67 Group Added | ||
expect 67 open Sender False | ||
empty | ||
mock network remove 67 | ||
expect 67 Group Removed | ||
empty | ||
|