Merge lp:~unity-team/url-dispatcher/mediaplayer-still-deb into lp:url-dispatcher/13.10

Proposed by Michal Hruby
Status: Merged
Approved by: Loïc Minier
Approved revision: 39
Merged at revision: 38
Proposed branch: lp:~unity-team/url-dispatcher/mediaplayer-still-deb
Merge into: lp:url-dispatcher/13.10
Diff against target: 60 lines (+6/-19)
3 files modified
service/dispatcher.c (+4/-8)
tests/click-data/.click/info/com.ubuntu.mediaplayer.manifest (+0/-9)
tests/dispatcher-test.cc (+2/-2)
To merge this branch: bzr merge lp:~unity-team/url-dispatcher/mediaplayer-still-deb
Reviewer Review Type Date Requested Status
Loïc Minier Approve
Sergio Schvezov Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+190923@code.launchpad.net

Commit message

Revert the definition change for mediaplayer, it'll remain a non-click app for now.

Description of the change

Revert the definition change for mediaplayer, it'll remain a non-click app for now.

Note that music is still considered a click pkg, so activating music results will not work until later today when the music app will be turned into proper click app.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Thomas Strehl (strehl-t) wrote :

Lines 111 and 116 in dispatcher-test.cc might need to be changed to:

ASSERT_STREQ("mediaplayer-app", upstart_app_launch_mock_get_last_app_id());

39. By Michal Hruby

Fix test

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

while not familiar with the code, it is correct that mediaplayer will be a legacy app and use the app_id seen in the MR

review: Approve
Revision history for this message
Loïc Minier (lool) wrote :

Looks good to me.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'service/dispatcher.c'
2--- service/dispatcher.c 2013-10-08 21:15:13 +0000
3+++ service/dispatcher.c 2013-10-14 12:09:27 +0000
4@@ -426,19 +426,15 @@
5 {
6 .regex_patern = "^video:///",
7 .regex_object = NULL,
8- .app_id = NULL,
9- .package = "com.ubuntu.mediaplayer",
10- .application = "mediaplayer",
11- .version = CURRENT
12+ .package = NULL, .application = NULL, .version = NULL,
13+ .app_id = "mediaplayer-app"
14 },
15 {
16 /* TODO: This is temporary for 13.10, we expect to be smarter in the future */
17 .regex_patern = "^file:///home/" USERNAME_REGEX "/Videos/",
18 .regex_object = NULL,
19- .app_id = NULL,
20- .package = "com.ubuntu.mediaplayer",
21- .application = "mediaplayer",
22- .version = CURRENT
23+ .package = NULL, .application = NULL, .version = NULL,
24+ .app_id = "mediaplayer-app"
25 },
26 /* Web Stuff */
27 {
28
29=== removed file 'tests/click-data/.click/info/com.ubuntu.mediaplayer.manifest'
30--- tests/click-data/.click/info/com.ubuntu.mediaplayer.manifest 2013-10-08 21:21:00 +0000
31+++ tests/click-data/.click/info/com.ubuntu.mediaplayer.manifest 1970-01-01 00:00:00 +0000
32@@ -1,9 +0,0 @@
33-{
34- "version": "2.1.4",
35- "name": "com.ubuntu.mediaplayer",
36- "hooks": {
37- "mediaplayer": {
38- "test": "test"
39- }
40- }
41-}
42
43=== modified file 'tests/dispatcher-test.cc'
44--- tests/dispatcher-test.cc 2013-10-08 21:27:34 +0000
45+++ tests/dispatcher-test.cc 2013-10-14 12:09:27 +0000
46@@ -108,12 +108,12 @@
47 {
48 /* Base Video */
49 dispatch_url("video:///foo.mp4");
50- ASSERT_STREQ("com.ubuntu.mediaplayer_mediaplayer_2.1.4", upstart_app_launch_mock_get_last_app_id());
51+ ASSERT_STREQ("mediaplayer-app", upstart_app_launch_mock_get_last_app_id());
52 upstart_app_launch_mock_clear_last_app_id();
53
54 /* File Video */
55 dispatch_url("file:///home/bar/Videos/foo.mp4");
56- ASSERT_STREQ("com.ubuntu.mediaplayer_mediaplayer_2.1.4", upstart_app_launch_mock_get_last_app_id());
57+ ASSERT_STREQ("mediaplayer-app", upstart_app_launch_mock_get_last_app_id());
58 upstart_app_launch_mock_clear_last_app_id();
59
60 return;

Subscribers

People subscribed via source and target branches