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

Issue 23461030: Made sure NativeMessagingHostTest.All can handle out of order responses. (Closed)

Created:
7 years, 3 months ago by alexeypa (please no reviews)
Modified:
7 years, 3 months ago
Reviewers:
Lambros
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, weitaosu+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Made sure NativeMessagingHostTest.All can handle out of order responses. This CL tags every request NativeMessagingHostTest.All sends and process the responses out of order since the native messaging host does not guarantee the order. It also removes the call log because of the same reason - the order is not reliable unless the client wait for the resonse before sending another request. Also with this CL NativeMessagingHost delays shutdown until all replies have been sent. BUG=284704 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221888

Patch Set 1 #

Patch Set 2 : Delay NMH shutdown until all replies are sent. #

Patch Set 3 : Fix clang warning #

Total comments: 16

Patch Set 4 : feedback #

Patch Set 5 : more feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -68 lines) Patch
M remoting/host/setup/native_messaging_host.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M remoting/host/setup/native_messaging_host.cc View 1 2 3 5 chunks +23 lines, -5 lines 0 comments Download
M remoting/host/setup/native_messaging_host_unittest.cc View 1 2 3 4 24 chunks +58 lines, -63 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
alexeypa (please no reviews)
PTAL.
7 years, 3 months ago (2013-09-05 21:39:52 UTC) #1
Lambros
lgtm with comments https://codereview.chromium.org/23461030/diff/11001/remoting/host/setup/native_messaging_host.cc File remoting/host/setup/native_messaging_host.cc (right): https://codereview.chromium.org/23461030/diff/11001/remoting/host/setup/native_messaging_host.cc#newcode138 remoting/host/setup/native_messaging_host.cc:138: pending_requests_ += 1; pending_requests++ ? https://codereview.chromium.org/23461030/diff/11001/remoting/host/setup/native_messaging_host.cc#newcode177 ...
7 years, 3 months ago (2013-09-06 03:03:12 UTC) #2
alexeypa (please no reviews)
https://chromiumcodereview.appspot.com/23461030/diff/11001/remoting/host/setup/native_messaging_host.cc File remoting/host/setup/native_messaging_host.cc (right): https://chromiumcodereview.appspot.com/23461030/diff/11001/remoting/host/setup/native_messaging_host.cc#newcode138 remoting/host/setup/native_messaging_host.cc:138: pending_requests_ += 1; On 2013/09/06 03:03:13, Lambros wrote: > ...
7 years, 3 months ago (2013-09-06 16:14:56 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/23461030/23001
7 years, 3 months ago (2013-09-06 16:15:10 UTC) #4
Lambros
https://chromiumcodereview.appspot.com/23461030/diff/11001/remoting/host/setup/native_messaging_host_unittest.cc File remoting/host/setup/native_messaging_host_unittest.cc (right): https://chromiumcodereview.appspot.com/23461030/diff/11001/remoting/host/setup/native_messaging_host_unittest.cc#newcode430 remoting/host/setup/native_messaging_host_unittest.cc:430: // Call the verification routine corresponding to the message ...
7 years, 3 months ago (2013-09-06 18:55:42 UTC) #5
alexeypa (please no reviews)
https://chromiumcodereview.appspot.com/23461030/diff/11001/remoting/host/setup/native_messaging_host_unittest.cc File remoting/host/setup/native_messaging_host_unittest.cc (right): https://chromiumcodereview.appspot.com/23461030/diff/11001/remoting/host/setup/native_messaging_host_unittest.cc#newcode430 remoting/host/setup/native_messaging_host_unittest.cc:430: // Call the verification routine corresponding to the message ...
7 years, 3 months ago (2013-09-06 22:19:26 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/23461030/45001
7 years, 3 months ago (2013-09-06 22:27:54 UTC) #7
commit-bot: I haz the power
7 years, 3 months ago (2013-09-07 04:28:50 UTC) #8
Message was sent while issue was closed.
Change committed as 221888

Powered by Google App Engine
This is Rietveld 408576698