{"action":"created","comment":{"url":"https://api.github.com/repos/OpenLightingProject/ja-rule/pulls/comments/24256058","id":24256058,"diff_hunk":"@@ -0,0 +1,80 @@\n+/*\n+ * This program is free software; you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published by\n+ * the Free Software Foundation; either version 2 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU Library General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program; if not, write to the Free Software\n+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n+ *\n+ * MessageHandlerMock.cpp\n+ * A mock message handler.\n+ * Copyright (C) 2015 Simon Newton\n+ */\n+\n+#include \"MessageHandlerMock.h\"\n+\n+#include <gmock/gmock.h>\n+\n+namespace {\n+MockMessageHandler *g_message_handler_mock = NULL;\n+}\n+\n+bool MessageMatcher::MatchAndExplain(\n+    const Message* message,\n+    testing::MatchResultListener* listener) const {\n+  if (message->command != m_command) {\n+    *listener << \"the command is \" << message->command;","path":"tests/mocks/MessageHandlerMock.cpp","position":33,"original_position":33,"commit_id":"2c5c3eddf716f2b0fbed6c097aba4c3e235b4769","original_commit_id":"2c5c3eddf716f2b0fbed6c097aba4c3e235b4769","user":{"login":"nomis52","id":4355332,"avatar_url":"https://avatars.githubusercontent.com/u/4355332?v=3","gravatar_id":"","url":"https://api.github.com/users/nomis52","html_url":"https://github.com/nomis52","followers_url":"https://api.github.com/users/nomis52/followers","following_url":"https://api.github.com/users/nomis52/following{/other_user}","gists_url":"https://api.github.com/users/nomis52/gists{/gist_id}","starred_url":"https://api.github.com/users/nomis52/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomis52/subscriptions","organizations_url":"https://api.github.com/users/nomis52/orgs","repos_url":"https://api.github.com/users/nomis52/repos","events_url":"https://api.github.com/users/nomis52/events{/privacy}","received_events_url":"https://api.github.com/users/nomis52/received_events","type":"User","site_admin":false},"body":"Same","created_at":"2015-02-06T17:23:24Z","updated_at":"2015-02-06T17:23:24Z","html_url":"https://github.com/OpenLightingProject/ja-rule/pull/10#discussion_r24256058","pull_request_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/OpenLightingProject/ja-rule/pulls/comments/24256058"},"html":{"href":"https://github.com/OpenLightingProject/ja-rule/pull/10#discussion_r24256058"},"pull_request":{"href":"https://api.github.com/repos/OpenLightingProject/ja-rule/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/OpenLightingProject/ja-rule/pulls/10","id":27994717,"html_url":"https://github.com/OpenLightingProject/ja-rule/pull/10","diff_url":"https://github.com/OpenLightingProject/ja-rule/pull/10.diff","patch_url":"https://github.com/OpenLightingProject/ja-rule/pull/10.patch","issue_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/issues/10","number":10,"state":"open","locked":false,"title":"Add everything we need to get basic device - host messages working.","user":{"login":"nomis52","id":4355332,"avatar_url":"https://avatars.githubusercontent.com/u/4355332?v=3","gravatar_id":"","url":"https://api.github.com/users/nomis52","html_url":"https://github.com/nomis52","followers_url":"https://api.github.com/users/nomis52/followers","following_url":"https://api.github.com/users/nomis52/following{/other_user}","gists_url":"https://api.github.com/users/nomis52/gists{/gist_id}","starred_url":"https://api.github.com/users/nomis52/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomis52/subscriptions","organizations_url":"https://api.github.com/users/nomis52/orgs","repos_url":"https://api.github.com/users/nomis52/repos","events_url":"https://api.github.com/users/nomis52/events{/privacy}","received_events_url":"https://api.github.com/users/nomis52/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-25T17:17:41Z","updated_at":"2015-02-06T17:23:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b85f41a3dd850a611ea0fb085d2a7a0e143f541","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/pulls/10/commits","review_comments_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/pulls/10/comments","review_comment_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/pulls/comments/{number}","comments_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/issues/10/comments","statuses_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/statuses/2c5c3eddf716f2b0fbed6c097aba4c3e235b4769","head":{"label":"nomis52:master","ref":"master","sha":"2c5c3eddf716f2b0fbed6c097aba4c3e235b4769","user":{"login":"nomis52","id":4355332,"avatar_url":"https://avatars.githubusercontent.com/u/4355332?v=3","gravatar_id":"","url":"https://api.github.com/users/nomis52","html_url":"https://github.com/nomis52","followers_url":"https://api.github.com/users/nomis52/followers","following_url":"https://api.github.com/users/nomis52/following{/other_user}","gists_url":"https://api.github.com/users/nomis52/gists{/gist_id}","starred_url":"https://api.github.com/users/nomis52/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomis52/subscriptions","organizations_url":"https://api.github.com/users/nomis52/orgs","repos_url":"https://api.github.com/users/nomis52/repos","events_url":"https://api.github.com/users/nomis52/events{/privacy}","received_events_url":"https://api.github.com/users/nomis52/received_events","type":"User","site_admin":false},"repo":{"id":29171822,"name":"ja-rule","full_name":"nomis52/ja-rule","owner":{"login":"nomis52","id":4355332,"avatar_url":"https://avatars.githubusercontent.com/u/4355332?v=3","gravatar_id":"","url":"https://api.github.com/users/nomis52","html_url":"https://github.com/nomis52","followers_url":"https://api.github.com/users/nomis52/followers","following_url":"https://api.github.com/users/nomis52/following{/other_user}","gists_url":"https://api.github.com/users/nomis52/gists{/gist_id}","starred_url":"https://api.github.com/users/nomis52/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomis52/subscriptions","organizations_url":"https://api.github.com/users/nomis52/orgs","repos_url":"https://api.github.com/users/nomis52/repos","events_url":"https://api.github.com/users/nomis52/events{/privacy}","received_events_url":"https://api.github.com/users/nomis52/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nomis52/ja-rule","description":"Ja Rule","fork":true,"url":"https://api.github.com/repos/nomis52/ja-rule","forks_url":"https://api.github.com/repos/nomis52/ja-rule/forks","keys_url":"https://api.github.com/repos/nomis52/ja-rule/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nomis52/ja-rule/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nomis52/ja-rule/teams","hooks_url":"https://api.github.com/repos/nomis52/ja-rule/hooks","issue_events_url":"https://api.github.com/repos/nomis52/ja-rule/issues/events{/number}","events_url":"https://api.github.com/repos/nomis52/ja-rule/events","assignees_url":"https://api.github.com/repos/nomis52/ja-rule/assignees{/user}","branches_url":"https://api.github.com/repos/nomis52/ja-rule/branches{/branch}","tags_url":"https://api.github.com/repos/nomis52/ja-rule/tags","blobs_url":"https://api.github.com/repos/nomis52/ja-rule/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nomis52/ja-rule/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nomis52/ja-rule/git/refs{/sha}","trees_url":"https://api.github.com/repos/nomis52/ja-rule/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nomis52/ja-rule/statuses/{sha}","languages_url":"https://api.github.com/repos/nomis52/ja-rule/languages","stargazers_url":"https://api.github.com/repos/nomis52/ja-rule/stargazers","contributors_url":"https://api.github.com/repos/nomis52/ja-rule/contributors","subscribers_url":"https://api.github.com/repos/nomis52/ja-rule/subscribers","subscription_url":"https://api.github.com/repos/nomis52/ja-rule/subscription","commits_url":"https://api.github.com/repos/nomis52/ja-rule/commits{/sha}","git_commits_url":"https://api.github.com/repos/nomis52/ja-rule/git/commits{/sha}","comments_url":"https://api.github.com/repos/nomis52/ja-rule/comments{/number}","issue_comment_url":"https://api.github.com/repos/nomis52/ja-rule/issues/comments/{number}","contents_url":"https://api.github.com/repos/nomis52/ja-rule/contents/{+path}","compare_url":"https://api.github.com/repos/nomis52/ja-rule/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nomis52/ja-rule/merges","archive_url":"https://api.github.com/repos/nomis52/ja-rule/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nomis52/ja-rule/downloads","issues_url":"https://api.github.com/repos/nomis52/ja-rule/issues{/number}","pulls_url":"https://api.github.com/repos/nomis52/ja-rule/pulls{/number}","milestones_url":"https://api.github.com/repos/nomis52/ja-rule/milestones{/number}","notifications_url":"https://api.github.com/repos/nomis52/ja-rule/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nomis52/ja-rule/labels{/name}","releases_url":"https://api.github.com/repos/nomis52/ja-rule/releases{/id}","created_at":"2015-01-13T03:58:08Z","updated_at":"2015-02-02T17:45:15Z","pushed_at":"2015-02-02T17:45:15Z","git_url":"git://github.com/nomis52/ja-rule.git","ssh_url":"git@github.com:nomis52/ja-rule.git","clone_url":"https://github.com/nomis52/ja-rule.git","svn_url":"https://github.com/nomis52/ja-rule","homepage":null,"size":508,"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":"OpenLightingProject:master","ref":"master","sha":"ce7185642e637cbadd8549f4e491671304d5d45f","user":{"login":"OpenLightingProject","id":6199314,"avatar_url":"https://avatars.githubusercontent.com/u/6199314?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenLightingProject","html_url":"https://github.com/OpenLightingProject","followers_url":"https://api.github.com/users/OpenLightingProject/followers","following_url":"https://api.github.com/users/OpenLightingProject/following{/other_user}","gists_url":"https://api.github.com/users/OpenLightingProject/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenLightingProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenLightingProject/subscriptions","organizations_url":"https://api.github.com/users/OpenLightingProject/orgs","repos_url":"https://api.github.com/users/OpenLightingProject/repos","events_url":"https://api.github.com/users/OpenLightingProject/events{/privacy}","received_events_url":"https://api.github.com/users/OpenLightingProject/received_events","type":"Organization","site_admin":false},"repo":{"id":27968183,"name":"ja-rule","full_name":"OpenLightingProject/ja-rule","owner":{"login":"OpenLightingProject","id":6199314,"avatar_url":"https://avatars.githubusercontent.com/u/6199314?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenLightingProject","html_url":"https://github.com/OpenLightingProject","followers_url":"https://api.github.com/users/OpenLightingProject/followers","following_url":"https://api.github.com/users/OpenLightingProject/following{/other_user}","gists_url":"https://api.github.com/users/OpenLightingProject/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenLightingProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenLightingProject/subscriptions","organizations_url":"https://api.github.com/users/OpenLightingProject/orgs","repos_url":"https://api.github.com/users/OpenLightingProject/repos","events_url":"https://api.github.com/users/OpenLightingProject/events{/privacy}","received_events_url":"https://api.github.com/users/OpenLightingProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenLightingProject/ja-rule","description":"Ja Rule","fork":false,"url":"https://api.github.com/repos/OpenLightingProject/ja-rule","forks_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/forks","keys_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/teams","hooks_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/hooks","issue_events_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/issues/events{/number}","events_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/events","assignees_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/assignees{/user}","branches_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/branches{/branch}","tags_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/tags","blobs_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/languages","stargazers_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/stargazers","contributors_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/contributors","subscribers_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/subscribers","subscription_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/subscription","commits_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/issues/comments/{number}","contents_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/contents/{+path}","compare_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/merges","archive_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/downloads","issues_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/issues{/number}","pulls_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/labels{/name}","releases_url":"https://api.github.com/repos/OpenLightingProject/ja-rule/releases{/id}","created_at":"2014-12-13T17:36:05Z","updated_at":"2015-02-06T16:21:42Z","pushed_at":"2015-02-06T16:21:41Z","git_url":"git://github.com/OpenLightingProject/ja-rule.git","ssh_url":"git@github.com:OpenLightingProject/ja-rule.git","clone_url":"https://github.com/OpenLightingProject/ja-rule.git","svn_url":"https://github.com/OpenLightingProject/ja-rule","homepage":null,"size":492,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenLightingProject/ja-rule/pulls/10"},"html":{"href":"https://github.com/OpenLightingProject/ja-rule/pull/10"},"issue":{"href":"https://api.github.com/repos/OpenLightingProject/ja-rule/issues/10"},"comments":{"href":"https://api.github.com/repos/OpenLightingProject/ja-rule/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenLightingProject/ja-rule/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenLightingProject/ja-rule/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/OpenLightingProject/ja-rule/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/OpenLightingProject/ja-rule/statuses/2c5c3eddf716f2b0fbed6c097aba4c3e235b4769"}}}}