Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Issue 1575313002: Add CommandBroker::OnTransaction to handle incoming transactions (Closed)

Created:
4 years, 11 months ago by hashimoto
Modified:
4 years, 11 months ago
Reviewers:
satorux1
CC:
chromium-reviews, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add CommandBroker::OnTransaction to handle incoming transactions To handle incoming transactions: Add CommandStream::IncomingCommandHandler::OnTransaction. Add CommandBroker::OnTransaction. To implement test: Add CommandBroker::EnterLooper, ExitLooper, PollCommands. Add Thread. Add TestService. Add BinderEndToEndTest. BUG=563282 Committed: https://crrev.com/bb42dee07a4a8df5dfa5ad33378b877e7b2944f3 Cr-Commit-Position: refs/heads/master@{#369385}

Patch Set 1 : #

Total comments: 30

Patch Set 2 : Add comments #

Patch Set 3 : Address comments #

Total comments: 6

Patch Set 4 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+415 lines, -2 lines) Patch
M chromeos/binder/command_broker.h View 1 2 chunks +13 lines, -0 lines 0 comments Download
M chromeos/binder/command_broker.cc View 1 3 chunks +62 lines, -0 lines 0 comments Download
M chromeos/binder/command_stream.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/binder/command_stream.cc View 1 chunk +13 lines, -2 lines 0 comments Download
M chromeos/binder/command_stream_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
A chromeos/binder/end_to_end_unittest.cc View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
A chromeos/binder/ipc_thread.h View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
A chromeos/binder/ipc_thread.cc View 1 2 1 chunk +71 lines, -0 lines 0 comments Download
A chromeos/binder/test_service.h View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
A chromeos/binder/test_service.cc View 1 chunk +81 lines, -0 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
hashimoto
4 years, 11 months ago (2016-01-12 08:08:04 UTC) #4
satorux1
https://codereview.chromium.org/1575313002/diff/20001/chromeos/binder/command_broker.cc File chromeos/binder/command_broker.cc (right): https://codereview.chromium.org/1575313002/diff/20001/chromeos/binder/command_broker.cc#newcode62 chromeos/binder/command_broker.cc:62: DCHECK(!command_stream_.CanProcessIncomingCommand()); so it's not ok to call this function ...
4 years, 11 months ago (2016-01-13 04:33:21 UTC) #5
hashimoto
https://codereview.chromium.org/1575313002/diff/20001/chromeos/binder/command_broker.cc File chromeos/binder/command_broker.cc (right): https://codereview.chromium.org/1575313002/diff/20001/chromeos/binder/command_broker.cc#newcode62 chromeos/binder/command_broker.cc:62: DCHECK(!command_stream_.CanProcessIncomingCommand()); On 2016/01/13 04:33:20, satorux1 wrote: > so it's ...
4 years, 11 months ago (2016-01-13 05:46:46 UTC) #6
satorux1
https://codereview.chromium.org/1575313002/diff/20001/chromeos/binder/test_service.h File chromeos/binder/test_service.h (right): https://codereview.chromium.org/1575313002/diff/20001/chromeos/binder/test_service.h#newcode16 chromeos/binder/test_service.h:16: // Opens binder driver on its own thread and ...
4 years, 11 months ago (2016-01-14 05:47:16 UTC) #7
hashimoto
https://codereview.chromium.org/1575313002/diff/20001/chromeos/binder/test_service.h File chromeos/binder/test_service.h (right): https://codereview.chromium.org/1575313002/diff/20001/chromeos/binder/test_service.h#newcode16 chromeos/binder/test_service.h:16: // Opens binder driver on its own thread and ...
4 years, 11 months ago (2016-01-14 06:24:29 UTC) #8
satorux1
LGTM with some comments https://codereview.chromium.org/1575313002/diff/60001/chromeos/binder/end_to_end_unittest.cc File chromeos/binder/end_to_end_unittest.cc (right): https://codereview.chromium.org/1575313002/diff/60001/chromeos/binder/end_to_end_unittest.cc#newcode28 chromeos/binder/end_to_end_unittest.cc:28: &command_broker_, test_service_.service_name()); ASSERT_EQ(TYPE_REMOTE, remote_object->GetType()) to ...
4 years, 11 months ago (2016-01-14 06:34:18 UTC) #9
hashimoto
https://codereview.chromium.org/1575313002/diff/60001/chromeos/binder/end_to_end_unittest.cc File chromeos/binder/end_to_end_unittest.cc (right): https://codereview.chromium.org/1575313002/diff/60001/chromeos/binder/end_to_end_unittest.cc#newcode28 chromeos/binder/end_to_end_unittest.cc:28: &command_broker_, test_service_.service_name()); On 2016/01/14 06:34:18, satorux1 wrote: > ASSERT_EQ(TYPE_REMOTE, ...
4 years, 11 months ago (2016-01-14 06:49:38 UTC) #10
satorux1
https://codereview.chromium.org/1575313002/diff/60001/chromeos/binder/ipc_thread.h File chromeos/binder/ipc_thread.h (right): https://codereview.chromium.org/1575313002/diff/60001/chromeos/binder/ipc_thread.h#newcode19 chromeos/binder/ipc_thread.h:19: // handles incoming binder commands. On 2016/01/14 06:49:38, hashimoto ...
4 years, 11 months ago (2016-01-14 07:07:13 UTC) #11
hashimoto
https://codereview.chromium.org/1575313002/diff/60001/chromeos/binder/ipc_thread.h File chromeos/binder/ipc_thread.h (right): https://codereview.chromium.org/1575313002/diff/60001/chromeos/binder/ipc_thread.h#newcode19 chromeos/binder/ipc_thread.h:19: // handles incoming binder commands. On 2016/01/14 07:07:13, satorux1 ...
4 years, 11 months ago (2016-01-14 08:52:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1575313002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1575313002/80001
4 years, 11 months ago (2016-01-14 09:45:49 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 11 months ago (2016-01-14 10:14:04 UTC) #17
commit-bot: I haz the power
4 years, 11 months ago (2016-01-14 10:15:37 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/bb42dee07a4a8df5dfa5ad33378b877e7b2944f3
Cr-Commit-Position: refs/heads/master@{#369385}

Powered by Google App Engine
This is Rietveld 408576698