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

Issue 1852283003: Updating Message Reader and Writer classes to use an interface. (Closed)

Created:
4 years, 8 months ago by joedow
Modified:
4 years, 8 months ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Updating Message Reader and Writer classes to use an interface. This change updates the message reader and writer classes to use an interface which will allow tests to more easily use fake objects to force specific test conditions. The CL which uses this change will be sent out shortly. I chose this path instead of relying purely on the in/out files to drive the tests as I think this approach is easier to grok and debug. Using a fake object also allows for simulating additional error conditions. BUG=584463 Committed: https://crrev.com/ba9fd2175b03955c52a60f3bd1ea95313948afe4 Cr-Commit-Position: refs/heads/master@{#385087}

Patch Set 1 #

Patch Set 2 : Removing ipc_client changes since they aren't needed in this patch #

Total comments: 8

Patch Set 3 : Addressing feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -573 lines) Patch
M remoting/host/BUILD.gn View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
A remoting/host/security_key/fake_remote_security_key_message_reader.h View 1 chunk +48 lines, -0 lines 0 comments Download
A remoting/host/security_key/fake_remote_security_key_message_reader.cc View 1 chunk +30 lines, -0 lines 0 comments Download
A remoting/host/security_key/fake_remote_security_key_message_writer.h View 1 chunk +65 lines, -0 lines 0 comments Download
A remoting/host/security_key/fake_remote_security_key_message_writer.cc View 1 chunk +53 lines, -0 lines 0 comments Download
M remoting/host/security_key/remote_security_key_message_reader.h View 1 2 1 chunk +7 lines, -45 lines 0 comments Download
A + remoting/host/security_key/remote_security_key_message_reader_impl.h View 1 2 4 chunks +17 lines, -20 lines 0 comments Download
A + remoting/host/security_key/remote_security_key_message_reader_impl.cc View 6 chunks +14 lines, -14 lines 0 comments Download
A + remoting/host/security_key/remote_security_key_message_reader_impl_unittest.cc View 1 2 10 chunks +28 lines, -25 lines 0 comments Download
M remoting/host/security_key/remote_security_key_message_reader_unittest.cc View 1 2 1 chunk +0 lines, -208 lines 0 comments Download
M remoting/host/security_key/remote_security_key_message_writer.h View 2 chunks +5 lines, -15 lines 0 comments Download
A + remoting/host/security_key/remote_security_key_message_writer_impl.h View 1 chunk +13 lines, -13 lines 0 comments Download
A + remoting/host/security_key/remote_security_key_message_writer_impl.cc View 3 chunks +8 lines, -7 lines 0 comments Download
A + remoting/host/security_key/remote_security_key_message_writer_impl_unittest.cc View 1 2 7 chunks +21 lines, -18 lines 0 comments Download
M remoting/host/security_key/remote_security_key_message_writer_unittest.cc View 1 2 1 chunk +0 lines, -202 lines 0 comments Download
M remoting/remoting_host_srcs.gypi View 1 chunk +4 lines, -2 lines 0 comments Download
M remoting/remoting_test.gypi View 1 2 2 chunks +6 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 10 (4 generated)
joedow
PTAL! Thanks, Joe
4 years, 8 months ago (2016-04-04 18:39:04 UTC) #2
Sergey Ulanov
lgtm https://codereview.chromium.org/1852283003/diff/20001/remoting/host/security_key/remote_security_key_message_reader.h File remoting/host/security_key/remote_security_key_message_reader.h (right): https://codereview.chromium.org/1852283003/diff/20001/remoting/host/security_key/remote_security_key_message_reader.h#newcode13 remoting/host/security_key/remote_security_key_message_reader.h:13: // Used for receiving remote security key messages ...
4 years, 8 months ago (2016-04-04 22:19:28 UTC) #3
joedow
Thanks! https://codereview.chromium.org/1852283003/diff/20001/remoting/host/security_key/remote_security_key_message_reader.h File remoting/host/security_key/remote_security_key_message_reader.h (right): https://codereview.chromium.org/1852283003/diff/20001/remoting/host/security_key/remote_security_key_message_reader.h#newcode13 remoting/host/security_key/remote_security_key_message_reader.h:13: // Used for receiving remote security key messages ...
4 years, 8 months ago (2016-04-05 00:50:19 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1852283003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1852283003/40001
4 years, 8 months ago (2016-04-05 02:12:54 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-05 02:18:58 UTC) #8
commit-bot: I haz the power
4 years, 8 months ago (2016-04-05 02:21:20 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ba9fd2175b03955c52a60f3bd1ea95313948afe4
Cr-Commit-Position: refs/heads/master@{#385087}

Powered by Google App Engine
This is Rietveld 408576698