{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/pulls/comments/101622503","pull_request_review_id":22357912,"id":101622503,"diff_hunk":"@@ -0,0 +1,67 @@\n+package com.microsoft.azure.mobile.updates;\n+\n+import android.app.Activity;\n+import android.content.Context;\n+import android.content.Intent;\n+\n+import com.microsoft.azure.mobile.channel.Channel;\n+import com.microsoft.azure.mobile.utils.storage.StorageHelper;\n+\n+import org.junit.Test;\n+\n+import static android.app.DownloadManager.ACTION_NOTIFICATION_CLICKED;\n+import static com.microsoft.azure.mobile.updates.UpdateConstants.PREFERENCE_KEY_UPDATE_TOKEN;\n+import static org.mockito.Matchers.eq;\n+import static org.mockito.Mockito.mock;\n+import static org.mockito.Mockito.never;\n+import static org.mockito.Mockito.verify;\n+import static org.mockito.Mockito.when;\n+import static org.powermock.api.mockito.PowerMockito.whenNew;\n+\n+public class UpdatesPlusDownloadReceiverTest extends AbstractUpdatesTest {\n+\n+    @Test\n+    public void resumeAppBeforeStart() throws Exception {\n+        Intent clickIntent = mock(Intent.class);\n+        when(clickIntent.getAction()).thenReturn(ACTION_NOTIFICATION_CLICKED);\n+        Context context = mock(Context.class);\n+        Intent startIntent = mock(Intent.class);\n+        whenNew(Intent.class).withArguments(context, DeepLinkActivity.class).thenReturn(startIntent);\n+        new DownloadCompletionReceiver().onReceive(context, clickIntent);\n+        verify(context).startActivity(startIntent);","path":"sdk/mobile-center-updates/src/test/java/com/microsoft/azure/mobile/updates/UpdatesPlusDownloadReceiverTest.java","position":31,"original_position":31,"commit_id":"8139a4a0874aceaac3bb0038919428658efb9fc7","original_commit_id":"5fb02b42641df2d39d8d147a3fd29eb518336a30","user":{"login":"guperrot","id":623672,"avatar_url":"https://avatars.githubusercontent.com/u/623672?v=3","gravatar_id":"","url":"https://api.github.com/users/guperrot","html_url":"https://github.com/guperrot","followers_url":"https://api.github.com/users/guperrot/followers","following_url":"https://api.github.com/users/guperrot/following{/other_user}","gists_url":"https://api.github.com/users/guperrot/gists{/gist_id}","starred_url":"https://api.github.com/users/guperrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guperrot/subscriptions","organizations_url":"https://api.github.com/users/guperrot/orgs","repos_url":"https://api.github.com/users/guperrot/repos","events_url":"https://api.github.com/users/guperrot/events{/privacy}","received_events_url":"https://api.github.com/users/guperrot/received_events","type":"User","site_admin":false},"body":"That does not change anything.","created_at":"2017-02-16T20:47:06Z","updated_at":"2017-02-16T20:47:06Z","html_url":"https://github.com/Microsoft/mobile-center-sdk-android/pull/321#discussion_r101622503","pull_request_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/pulls/321","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/pulls/comments/101622503"},"html":{"href":"https://github.com/Microsoft/mobile-center-sdk-android/pull/321#discussion_r101622503"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/pulls/321"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/pulls/321","id":105140285,"html_url":"https://github.com/Microsoft/mobile-center-sdk-android/pull/321","diff_url":"https://github.com/Microsoft/mobile-center-sdk-android/pull/321.diff","patch_url":"https://github.com/Microsoft/mobile-center-sdk-android/pull/321.patch","issue_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/issues/321","number":321,"state":"open","locked":false,"title":"In app update prototype","user":{"login":"guperrot","id":623672,"avatar_url":"https://avatars.githubusercontent.com/u/623672?v=3","gravatar_id":"","url":"https://api.github.com/users/guperrot","html_url":"https://github.com/guperrot","followers_url":"https://api.github.com/users/guperrot/followers","following_url":"https://api.github.com/users/guperrot/following{/other_user}","gists_url":"https://api.github.com/users/guperrot/gists{/gist_id}","starred_url":"https://api.github.com/users/guperrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guperrot/subscriptions","organizations_url":"https://api.github.com/users/guperrot/orgs","repos_url":"https://api.github.com/users/guperrot/repos","events_url":"https://api.github.com/users/guperrot/events{/privacy}","received_events_url":"https://api.github.com/users/guperrot/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-08T03:00:35Z","updated_at":"2017-02-16T20:47:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3317514f4dd89b4da95b1f961a14c34bc32a6195","assignee":{"login":"jaelim-ms","id":19935783,"avatar_url":"https://avatars.githubusercontent.com/u/19935783?v=3","gravatar_id":"","url":"https://api.github.com/users/jaelim-ms","html_url":"https://github.com/jaelim-ms","followers_url":"https://api.github.com/users/jaelim-ms/followers","following_url":"https://api.github.com/users/jaelim-ms/following{/other_user}","gists_url":"https://api.github.com/users/jaelim-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/jaelim-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaelim-ms/subscriptions","organizations_url":"https://api.github.com/users/jaelim-ms/orgs","repos_url":"https://api.github.com/users/jaelim-ms/repos","events_url":"https://api.github.com/users/jaelim-ms/events{/privacy}","received_events_url":"https://api.github.com/users/jaelim-ms/received_events","type":"User","site_admin":false},"assignees":[{"login":"jaelim-ms","id":19935783,"avatar_url":"https://avatars.githubusercontent.com/u/19935783?v=3","gravatar_id":"","url":"https://api.github.com/users/jaelim-ms","html_url":"https://github.com/jaelim-ms","followers_url":"https://api.github.com/users/jaelim-ms/followers","following_url":"https://api.github.com/users/jaelim-ms/following{/other_user}","gists_url":"https://api.github.com/users/jaelim-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/jaelim-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaelim-ms/subscriptions","organizations_url":"https://api.github.com/users/jaelim-ms/orgs","repos_url":"https://api.github.com/users/jaelim-ms/repos","events_url":"https://api.github.com/users/jaelim-ms/events{/privacy}","received_events_url":"https://api.github.com/users/jaelim-ms/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/pulls/321/commits","review_comments_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/pulls/321/comments","review_comment_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/issues/321/comments","statuses_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/statuses/8139a4a0874aceaac3bb0038919428658efb9fc7","head":{"label":"Microsoft:distribution","ref":"distribution","sha":"8139a4a0874aceaac3bb0038919428658efb9fc7","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":60783603,"name":"mobile-center-sdk-android","full_name":"Microsoft/mobile-center-sdk-android","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/mobile-center-sdk-android","description":"Development repository for the Mobile Center SDK for Android","fork":false,"url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android","forks_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/forks","keys_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/teams","hooks_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/events","assignees_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/tags","blobs_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/languages","stargazers_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/subscription","commits_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/merges","archive_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/downloads","issues_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/deployments","created_at":"2016-06-09T15:03:59Z","updated_at":"2017-01-23T22:47:46Z","pushed_at":"2017-02-16T20:43:14Z","git_url":"git://github.com/Microsoft/mobile-center-sdk-android.git","ssh_url":"git@github.com:Microsoft/mobile-center-sdk-android.git","clone_url":"https://github.com/Microsoft/mobile-center-sdk-android.git","svn_url":"https://github.com/Microsoft/mobile-center-sdk-android","homepage":"","size":2069,"stargazers_count":11,"watchers_count":11,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":11,"default_branch":"develop"}},"base":{"label":"Microsoft:updates","ref":"updates","sha":"68dcae9211e80342f1df74ac3acab62a110fdf14","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":60783603,"name":"mobile-center-sdk-android","full_name":"Microsoft/mobile-center-sdk-android","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/mobile-center-sdk-android","description":"Development repository for the Mobile Center SDK for Android","fork":false,"url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android","forks_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/forks","keys_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/teams","hooks_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/events","assignees_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/tags","blobs_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/languages","stargazers_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/subscription","commits_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/merges","archive_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/downloads","issues_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/deployments","created_at":"2016-06-09T15:03:59Z","updated_at":"2017-01-23T22:47:46Z","pushed_at":"2017-02-16T20:43:14Z","git_url":"git://github.com/Microsoft/mobile-center-sdk-android.git","ssh_url":"git@github.com:Microsoft/mobile-center-sdk-android.git","clone_url":"https://github.com/Microsoft/mobile-center-sdk-android.git","svn_url":"https://github.com/Microsoft/mobile-center-sdk-android","homepage":"","size":2069,"stargazers_count":11,"watchers_count":11,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":11,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/pulls/321"},"html":{"href":"https://github.com/Microsoft/mobile-center-sdk-android/pull/321"},"issue":{"href":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/issues/321"},"comments":{"href":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/issues/321/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/pulls/321/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/pulls/321/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/mobile-center-sdk-android/statuses/8139a4a0874aceaac3bb0038919428658efb9fc7"}}}}
{"actor":{"display_login":"guperrot"}}