{"action":"created","comment":{"url":"https://api.github.com/repos/smartdevicelink/sdl_core/pulls/comments/74403511","id":74403511,"diff_hunk":"@@ -0,0 +1,109 @@\n+/*\n+ * Copyright (c) 2016, Ford Motor Company\n+ * All rights reserved.\n+ *\n+ * Redistribution and use in source and binary forms, with or without\n+ * modification, are permitted provided that the following conditions are met:\n+ *\n+ * Redistributions of source code must retain the above copyright notice, this\n+ * list of conditions and the following disclaimer.\n+ *\n+ * Redistributions in binary form must reproduce the above copyright notice,\n+ * this list of conditions and the following\n+ * disclaimer in the documentation and/or other materials provided with the\n+ * distribution.\n+ *\n+ * Neither the name of the Ford Motor Company nor the names of its contributors\n+ * may be used to endorse or promote products derived from this software\n+ * without specific prior written permission.\n+ *\n+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n+ * POSSIBILITY OF SUCH DAMAGE.\n+ */\n+\n+#include \"gtest/gtest.h\"\n+#include \"application_manager/commands/hmi/ui_get_language_response.h\"\n+#include \"application_manager/smart_object_keys.h\"\n+#include \"application_manager/commands/commands_test.h\"\n+#include \"application_manager/mock_hmi_capabilities.h\"\n+#include \"application_manager/mock_event_dispatcher.h\"\n+#include \"application_manager/mock_application_manager.h\"\n+\n+namespace test {\n+namespace components {\n+namespace commands_test {\n+namespace hmi_commands_test {\n+\n+using utils::SharedPtr;\n+using application_manager::commands::UIGetLanguageResponse;\n+// using test::components::application_manager_test::MockHMICapabilities;\n+using test::components::event_engine_test::MockEventDispatcher;\n+using testing::_;\n+using testing::ReturnRef;\n+using ::testing::NiceMock;\n+\n+namespace strings = application_manager::strings;\n+namespace hmi_response = application_manager::hmi_response;\n+using namespace hmi_apis;\n+\n+typedef NiceMock<\n+    ::test::components::application_manager_test::MockHMICapabilities>\n+    MockHMICapabilities;\n+\n+class UIGetLanguageResponseTest\n+    : public CommandsTest<CommandsTestMocks::kIsNice> {};\n+\n+TEST_F(UIGetLanguageResponseTest, Run_LanguageSet_SUCCESS) {\n+  MessageSharedPtr msg = CreateMessage();\n+  (*msg)[strings::msg_params][hmi_response::language] = Common_Language::EN_GB;\n+\n+  SharedPtr<UIGetLanguageResponse> command(\n+      CreateCommand<UIGetLanguageResponse>(msg));\n+\n+  MockHMICapabilities mock_hmi_capabilities;\n+  EXPECT_CALL(app_mngr_, hmi_capabilities())\n+      .WillOnce(ReturnRef(mock_hmi_capabilities));\n+  EXPECT_CALL(mock_hmi_capabilities,\n+              set_active_ui_language(Common_Language::EN_GB));\n+\n+  MockEventDispatcher mock_event_dispatcher;\n+  EXPECT_CALL(app_mngr_, event_dispatcher())\n+      .WillOnce(ReturnRef(mock_event_dispatcher));\n+  EXPECT_CALL(mock_event_dispatcher, raise_event(_));","path":"src/components/application_manager/test/commands/hmi/ui_get_language_response_test.cc","position":81,"original_position":81,"commit_id":"dd6431699f4c97d4331f16e78351c9fbbce835f6","original_commit_id":"dd6431699f4c97d4331f16e78351c9fbbce835f6","user":{"login":"LevchenkoS","id":18613689,"avatar_url":"https://avatars.githubusercontent.com/u/18613689?v=3","gravatar_id":"","url":"https://api.github.com/users/LevchenkoS","html_url":"https://github.com/LevchenkoS","followers_url":"https://api.github.com/users/LevchenkoS/followers","following_url":"https://api.github.com/users/LevchenkoS/following{/other_user}","gists_url":"https://api.github.com/users/LevchenkoS/gists{/gist_id}","starred_url":"https://api.github.com/users/LevchenkoS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LevchenkoS/subscriptions","organizations_url":"https://api.github.com/users/LevchenkoS/orgs","repos_url":"https://api.github.com/users/LevchenkoS/repos","events_url":"https://api.github.com/users/LevchenkoS/events{/privacy}","received_events_url":"https://api.github.com/users/LevchenkoS/received_events","type":"User","site_admin":false},"body":"@wolfylambova22, are we really need to expect this call?","created_at":"2016-08-11T11:07:39Z","updated_at":"2016-08-11T11:07:39Z","html_url":"https://github.com/smartdevicelink/sdl_core/pull/753#discussion_r74403511","pull_request_url":"https://api.github.com/repos/smartdevicelink/sdl_core/pulls/753","_links":{"self":{"href":"https://api.github.com/repos/smartdevicelink/sdl_core/pulls/comments/74403511"},"html":{"href":"https://github.com/smartdevicelink/sdl_core/pull/753#discussion_r74403511"},"pull_request":{"href":"https://api.github.com/repos/smartdevicelink/sdl_core/pulls/753"}}},"pull_request":{"url":"https://api.github.com/repos/smartdevicelink/sdl_core/pulls/753","id":80928290,"html_url":"https://github.com/smartdevicelink/sdl_core/pull/753","diff_url":"https://github.com/smartdevicelink/sdl_core/pull/753.diff","patch_url":"https://github.com/smartdevicelink/sdl_core/pull/753.patch","issue_url":"https://api.github.com/repos/smartdevicelink/sdl_core/issues/753","number":753,"state":"open","locked":false,"title":"Cover HMI commands with Unit Tests Part 10","user":{"login":"wolfylambova22","id":19815905,"avatar_url":"https://avatars.githubusercontent.com/u/19815905?v=3","gravatar_id":"","url":"https://api.github.com/users/wolfylambova22","html_url":"https://github.com/wolfylambova22","followers_url":"https://api.github.com/users/wolfylambova22/followers","following_url":"https://api.github.com/users/wolfylambova22/following{/other_user}","gists_url":"https://api.github.com/users/wolfylambova22/gists{/gist_id}","starred_url":"https://api.github.com/users/wolfylambova22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolfylambova22/subscriptions","organizations_url":"https://api.github.com/users/wolfylambova22/orgs","repos_url":"https://api.github.com/users/wolfylambova22/repos","events_url":"https://api.github.com/users/wolfylambova22/events{/privacy}","received_events_url":"https://api.github.com/users/wolfylambova22/received_events","type":"User","site_admin":false},"body":"Following HMI commands were coverd by unit tests:\r\n\r\n- ui_get_language_request\r\n- ui_get_language_response\r\n- ui_get_supported_languages_request\r\n- ui_get_supported_languages_response\r\n- ui_is_ready_request\r\n- ui_is_ready_response\r\n- ui_perform_audio_pass_thru_request\r\n- ui_perform_audio_pass_thru_response\r\n- ui_perform_interaction_request\r\n- ui_perform_interaction_response\r\n\r\nRelated issue: APPLINK-25914","created_at":"2016-08-11T09:37:34Z","updated_at":"2016-08-11T11:07:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"94e3d563cbfdd5da72aa20e8bb409da45faa36da","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/smartdevicelink/sdl_core/pulls/753/commits","review_comments_url":"https://api.github.com/repos/smartdevicelink/sdl_core/pulls/753/comments","review_comment_url":"https://api.github.com/repos/smartdevicelink/sdl_core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/smartdevicelink/sdl_core/issues/753/comments","statuses_url":"https://api.github.com/repos/smartdevicelink/sdl_core/statuses/dd6431699f4c97d4331f16e78351c9fbbce835f6","head":{"label":"wolfylambova22:feature/cover_hmi_commands_with_unit_tests_p10","ref":"feature/cover_hmi_commands_with_unit_tests_p10","sha":"dd6431699f4c97d4331f16e78351c9fbbce835f6","user":{"login":"wolfylambova22","id":19815905,"avatar_url":"https://avatars.githubusercontent.com/u/19815905?v=3","gravatar_id":"","url":"https://api.github.com/users/wolfylambova22","html_url":"https://github.com/wolfylambova22","followers_url":"https://api.github.com/users/wolfylambova22/followers","following_url":"https://api.github.com/users/wolfylambova22/following{/other_user}","gists_url":"https://api.github.com/users/wolfylambova22/gists{/gist_id}","starred_url":"https://api.github.com/users/wolfylambova22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolfylambova22/subscriptions","organizations_url":"https://api.github.com/users/wolfylambova22/orgs","repos_url":"https://api.github.com/users/wolfylambova22/repos","events_url":"https://api.github.com/users/wolfylambova22/events{/privacy}","received_events_url":"https://api.github.com/users/wolfylambova22/received_events","type":"User","site_admin":false},"repo":{"id":60698007,"name":"sdl_core","full_name":"wolfylambova22/sdl_core","owner":{"login":"wolfylambova22","id":19815905,"avatar_url":"https://avatars.githubusercontent.com/u/19815905?v=3","gravatar_id":"","url":"https://api.github.com/users/wolfylambova22","html_url":"https://github.com/wolfylambova22","followers_url":"https://api.github.com/users/wolfylambova22/followers","following_url":"https://api.github.com/users/wolfylambova22/following{/other_user}","gists_url":"https://api.github.com/users/wolfylambova22/gists{/gist_id}","starred_url":"https://api.github.com/users/wolfylambova22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolfylambova22/subscriptions","organizations_url":"https://api.github.com/users/wolfylambova22/orgs","repos_url":"https://api.github.com/users/wolfylambova22/repos","events_url":"https://api.github.com/users/wolfylambova22/events{/privacy}","received_events_url":"https://api.github.com/users/wolfylambova22/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wolfylambova22/sdl_core","description":"SmartDeviceLink In-Vehicle Software and Sample HMI","fork":true,"url":"https://api.github.com/repos/wolfylambova22/sdl_core","forks_url":"https://api.github.com/repos/wolfylambova22/sdl_core/forks","keys_url":"https://api.github.com/repos/wolfylambova22/sdl_core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolfylambova22/sdl_core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolfylambova22/sdl_core/teams","hooks_url":"https://api.github.com/repos/wolfylambova22/sdl_core/hooks","issue_events_url":"https://api.github.com/repos/wolfylambova22/sdl_core/issues/events{/number}","events_url":"https://api.github.com/repos/wolfylambova22/sdl_core/events","assignees_url":"https://api.github.com/repos/wolfylambova22/sdl_core/assignees{/user}","branches_url":"https://api.github.com/repos/wolfylambova22/sdl_core/branches{/branch}","tags_url":"https://api.github.com/repos/wolfylambova22/sdl_core/tags","blobs_url":"https://api.github.com/repos/wolfylambova22/sdl_core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolfylambova22/sdl_core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolfylambova22/sdl_core/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolfylambova22/sdl_core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolfylambova22/sdl_core/statuses/{sha}","languages_url":"https://api.github.com/repos/wolfylambova22/sdl_core/languages","stargazers_url":"https://api.github.com/repos/wolfylambova22/sdl_core/stargazers","contributors_url":"https://api.github.com/repos/wolfylambova22/sdl_core/contributors","subscribers_url":"https://api.github.com/repos/wolfylambova22/sdl_core/subscribers","subscription_url":"https://api.github.com/repos/wolfylambova22/sdl_core/subscription","commits_url":"https://api.github.com/repos/wolfylambova22/sdl_core/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolfylambova22/sdl_core/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolfylambova22/sdl_core/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolfylambova22/sdl_core/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolfylambova22/sdl_core/contents/{+path}","compare_url":"https://api.github.com/repos/wolfylambova22/sdl_core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolfylambova22/sdl_core/merges","archive_url":"https://api.github.com/repos/wolfylambova22/sdl_core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolfylambova22/sdl_core/downloads","issues_url":"https://api.github.com/repos/wolfylambova22/sdl_core/issues{/number}","pulls_url":"https://api.github.com/repos/wolfylambova22/sdl_core/pulls{/number}","milestones_url":"https://api.github.com/repos/wolfylambova22/sdl_core/milestones{/number}","notifications_url":"https://api.github.com/repos/wolfylambova22/sdl_core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolfylambova22/sdl_core/labels{/name}","releases_url":"https://api.github.com/repos/wolfylambova22/sdl_core/releases{/id}","deployments_url":"https://api.github.com/repos/wolfylambova22/sdl_core/deployments","created_at":"2016-06-08T13:00:06Z","updated_at":"2016-06-08T13:00:14Z","pushed_at":"2016-08-11T09:35:20Z","git_url":"git://github.com/wolfylambova22/sdl_core.git","ssh_url":"git@github.com:wolfylambova22/sdl_core.git","clone_url":"https://github.com/wolfylambova22/sdl_core.git","svn_url":"https://github.com/wolfylambova22/sdl_core","homepage":"","size":175121,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"smartdevicelink:develop","ref":"develop","sha":"fde35b6fb932ec6a496184b390d7185e9a7114f2","user":{"login":"smartdevicelink","id":8671397,"avatar_url":"https://avatars.githubusercontent.com/u/8671397?v=3","gravatar_id":"","url":"https://api.github.com/users/smartdevicelink","html_url":"https://github.com/smartdevicelink","followers_url":"https://api.github.com/users/smartdevicelink/followers","following_url":"https://api.github.com/users/smartdevicelink/following{/other_user}","gists_url":"https://api.github.com/users/smartdevicelink/gists{/gist_id}","starred_url":"https://api.github.com/users/smartdevicelink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartdevicelink/subscriptions","organizations_url":"https://api.github.com/users/smartdevicelink/orgs","repos_url":"https://api.github.com/users/smartdevicelink/repos","events_url":"https://api.github.com/users/smartdevicelink/events{/privacy}","received_events_url":"https://api.github.com/users/smartdevicelink/received_events","type":"Organization","site_admin":false},"repo":{"id":24724170,"name":"sdl_core","full_name":"smartdevicelink/sdl_core","owner":{"login":"smartdevicelink","id":8671397,"avatar_url":"https://avatars.githubusercontent.com/u/8671397?v=3","gravatar_id":"","url":"https://api.github.com/users/smartdevicelink","html_url":"https://github.com/smartdevicelink","followers_url":"https://api.github.com/users/smartdevicelink/followers","following_url":"https://api.github.com/users/smartdevicelink/following{/other_user}","gists_url":"https://api.github.com/users/smartdevicelink/gists{/gist_id}","starred_url":"https://api.github.com/users/smartdevicelink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartdevicelink/subscriptions","organizations_url":"https://api.github.com/users/smartdevicelink/orgs","repos_url":"https://api.github.com/users/smartdevicelink/repos","events_url":"https://api.github.com/users/smartdevicelink/events{/privacy}","received_events_url":"https://api.github.com/users/smartdevicelink/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/smartdevicelink/sdl_core","description":"SmartDeviceLink In-Vehicle Software and Sample HMI","fork":false,"url":"https://api.github.com/repos/smartdevicelink/sdl_core","forks_url":"https://api.github.com/repos/smartdevicelink/sdl_core/forks","keys_url":"https://api.github.com/repos/smartdevicelink/sdl_core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smartdevicelink/sdl_core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smartdevicelink/sdl_core/teams","hooks_url":"https://api.github.com/repos/smartdevicelink/sdl_core/hooks","issue_events_url":"https://api.github.com/repos/smartdevicelink/sdl_core/issues/events{/number}","events_url":"https://api.github.com/repos/smartdevicelink/sdl_core/events","assignees_url":"https://api.github.com/repos/smartdevicelink/sdl_core/assignees{/user}","branches_url":"https://api.github.com/repos/smartdevicelink/sdl_core/branches{/branch}","tags_url":"https://api.github.com/repos/smartdevicelink/sdl_core/tags","blobs_url":"https://api.github.com/repos/smartdevicelink/sdl_core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smartdevicelink/sdl_core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smartdevicelink/sdl_core/git/refs{/sha}","trees_url":"https://api.github.com/repos/smartdevicelink/sdl_core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smartdevicelink/sdl_core/statuses/{sha}","languages_url":"https://api.github.com/repos/smartdevicelink/sdl_core/languages","stargazers_url":"https://api.github.com/repos/smartdevicelink/sdl_core/stargazers","contributors_url":"https://api.github.com/repos/smartdevicelink/sdl_core/contributors","subscribers_url":"https://api.github.com/repos/smartdevicelink/sdl_core/subscribers","subscription_url":"https://api.github.com/repos/smartdevicelink/sdl_core/subscription","commits_url":"https://api.github.com/repos/smartdevicelink/sdl_core/commits{/sha}","git_commits_url":"https://api.github.com/repos/smartdevicelink/sdl_core/git/commits{/sha}","comments_url":"https://api.github.com/repos/smartdevicelink/sdl_core/comments{/number}","issue_comment_url":"https://api.github.com/repos/smartdevicelink/sdl_core/issues/comments{/number}","contents_url":"https://api.github.com/repos/smartdevicelink/sdl_core/contents/{+path}","compare_url":"https://api.github.com/repos/smartdevicelink/sdl_core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smartdevicelink/sdl_core/merges","archive_url":"https://api.github.com/repos/smartdevicelink/sdl_core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smartdevicelink/sdl_core/downloads","issues_url":"https://api.github.com/repos/smartdevicelink/sdl_core/issues{/number}","pulls_url":"https://api.github.com/repos/smartdevicelink/sdl_core/pulls{/number}","milestones_url":"https://api.github.com/repos/smartdevicelink/sdl_core/milestones{/number}","notifications_url":"https://api.github.com/repos/smartdevicelink/sdl_core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smartdevicelink/sdl_core/labels{/name}","releases_url":"https://api.github.com/repos/smartdevicelink/sdl_core/releases{/id}","deployments_url":"https://api.github.com/repos/smartdevicelink/sdl_core/deployments","created_at":"2014-10-02T15:16:26Z","updated_at":"2016-07-21T11:12:22Z","pushed_at":"2016-08-11T09:37:34Z","git_url":"git://github.com/smartdevicelink/sdl_core.git","ssh_url":"git@github.com:smartdevicelink/sdl_core.git","clone_url":"https://github.com/smartdevicelink/sdl_core.git","svn_url":"https://github.com/smartdevicelink/sdl_core","homepage":"","size":309525,"stargazers_count":74,"watchers_count":74,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":91,"mirror_url":null,"open_issues_count":89,"forks":91,"open_issues":89,"watchers":74,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/smartdevicelink/sdl_core/pulls/753"},"html":{"href":"https://github.com/smartdevicelink/sdl_core/pull/753"},"issue":{"href":"https://api.github.com/repos/smartdevicelink/sdl_core/issues/753"},"comments":{"href":"https://api.github.com/repos/smartdevicelink/sdl_core/issues/753/comments"},"review_comments":{"href":"https://api.github.com/repos/smartdevicelink/sdl_core/pulls/753/comments"},"review_comment":{"href":"https://api.github.com/repos/smartdevicelink/sdl_core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/smartdevicelink/sdl_core/pulls/753/commits"},"statuses":{"href":"https://api.github.com/repos/smartdevicelink/sdl_core/statuses/dd6431699f4c97d4331f16e78351c9fbbce835f6"}}}}
{"actor":{"display_login":"LevchenkoS"}}