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

Issue 1253613002: Updated latency fixture and refactored connection helper (Closed)

Created:
5 years, 5 months ago by liaoyuke
Modified:
5 years, 4 months ago
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

Updated latency fixture to match internal classes and refactored connection helper. 1. Moved the Open new document logic to the SetUp function to enforce a fresh document for tests. 2. Refactored connection helper to make it as minimum as possible, and moved the ping response verify logic to the connected client fixture. BUG= Committed: https://crrev.com/4d6371eaba0106a6051282b86ef59ccd121e6bc5 Cr-Commit-Position: refs/heads/master@{#340588}

Patch Set 1 #

Total comments: 20

Patch Set 2 : "Addressed feedback from Joe and Sergey" #

Patch Set 3 : "Moved RGBValue out of test video renderer as a standalone struct" #

Total comments: 12

Patch Set 4 : "Updated comments and fixed error message" #

Total comments: 4

Patch Set 5 : "Minor update on comments to fix error messages" #

Total comments: 2

Patch Set 6 : "Updated naming for accessor of test_chromoting_client_" #

Total comments: 15

Patch Set 7 : "Addressed feedback from Sergey" #

Patch Set 8 : "Changed cstdint to stdint.h to compile on mac" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -82 lines) Patch
M remoting/remoting_test.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/test/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/test/app_remoting_connected_client_fixture.h View 1 4 chunks +16 lines, -1 line 0 comments Download
M remoting/test/app_remoting_connected_client_fixture.cc View 1 2 3 4 5 5 chunks +20 lines, -4 lines 0 comments Download
M remoting/test/app_remoting_connection_helper.h View 1 2 3 4 5 6 3 chunks +3 lines, -13 lines 0 comments Download
M remoting/test/app_remoting_connection_helper.cc View 1 5 chunks +5 lines, -12 lines 0 comments Download
M remoting/test/app_remoting_latency_test_fixture.h View 1 2 3 4 5 6 7 chunks +31 lines, -6 lines 0 comments Download
M remoting/test/app_remoting_latency_test_fixture.cc View 1 2 3 4 5 6 6 chunks +29 lines, -1 line 0 comments Download
A remoting/test/rgb_value.h View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
A + remoting/test/rgb_value.cc View 1 2 3 4 5 6 1 chunk +5 lines, -5 lines 0 comments Download
M remoting/test/test_chromoting_client.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M remoting/test/test_video_renderer.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M remoting/test/test_video_renderer.cc View 1 2 6 chunks +8 lines, -24 lines 0 comments Download
M remoting/test/test_video_renderer_unittest.cc View 1 2 3 7 chunks +14 lines, -13 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
liaoyuke
Hey Joe, Sergey, Anand, Please review a changelist from liaoyuke. Thank you very much!
5 years, 5 months ago (2015-07-23 01:43:47 UTC) #2
Sergey Ulanov
https://codereview.chromium.org/1253613002/diff/1/remoting/test/app_remoting_connected_client_fixture.cc File remoting/test/app_remoting_connected_client_fixture.cc (right): https://codereview.chromium.org/1253613002/diff/1/remoting/test/app_remoting_connected_client_fixture.cc#newcode65 remoting/test/app_remoting_connected_client_fixture.cc:65: test_chromoting_client_->RemoveRemoteConnectionObserver(this); Before dereferencing a weak pointer you need to ...
5 years, 5 months ago (2015-07-23 19:36:55 UTC) #3
joedow
https://codereview.chromium.org/1253613002/diff/1/remoting/test/app_remoting_connected_client_fixture.cc File remoting/test/app_remoting_connected_client_fixture.cc (right): https://codereview.chromium.org/1253613002/diff/1/remoting/test/app_remoting_connected_client_fixture.cc#newcode74 remoting/test/app_remoting_connected_client_fixture.cc:74: base::ResetAndReturn(&host_message_received_callback_).Run(message); To add on to Sergey's comments, you could ...
5 years, 5 months ago (2015-07-23 20:26:57 UTC) #4
liaoyuke
Hey Joe, Sergey, Anand, I've addressed the feedback in my last patch set, meanwhile, to ...
5 years, 5 months ago (2015-07-24 02:07:28 UTC) #6
joedow
Almost there! Please address the comments and fix the try-bot errors. https://codereview.chromium.org/1253613002/diff/60001/remoting/test/app_remoting_connected_client_fixture.cc File remoting/test/app_remoting_connected_client_fixture.cc (right): ...
5 years, 5 months ago (2015-07-24 13:50:58 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1253613002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1253613002/80001
5 years, 5 months ago (2015-07-25 01:39:22 UTC) #9
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 5 months ago (2015-07-25 01:39:25 UTC) #12
liaoyuke
Hey Joe, Sergey, Anand, I've addressed feedback from Joe, and fixed all error message. Please ...
5 years, 5 months ago (2015-07-25 01:43:49 UTC) #13
joedow
https://codereview.chromium.org/1253613002/diff/80001/remoting/test/app_remoting_latency_test_fixture.cc File remoting/test/app_remoting_latency_test_fixture.cc (right): https://codereview.chromium.org/1253613002/diff/80001/remoting/test/app_remoting_latency_test_fixture.cc#newcode52 remoting/test/app_remoting_latency_test_fixture.cc:52: LOG(ERROR) << "New document could not be created."; Please ...
5 years, 5 months ago (2015-07-25 02:13:34 UTC) #14
liaoyuke
Hey Joe, Sergey, Anand, Please take a look to see if you have any additional ...
5 years, 4 months ago (2015-07-27 17:22:50 UTC) #15
joedow
https://codereview.chromium.org/1253613002/diff/100001/remoting/test/app_remoting_connection_helper.h File remoting/test/app_remoting_connection_helper.h (right): https://codereview.chromium.org/1253613002/diff/100001/remoting/test/app_remoting_connection_helper.h#newcode52 remoting/test/app_remoting_connection_helper.h:52: TestChromotingClient* GetTestChromotingClient() { return client_.get(); } This should use ...
5 years, 4 months ago (2015-07-27 17:30:12 UTC) #16
liaoyuke
Hey Joe, Sergey, Anand, Please take another look. Thank you very much! https://codereview.chromium.org/1253613002/diff/100001/remoting/test/app_remoting_connection_helper.h File remoting/test/app_remoting_connection_helper.h ...
5 years, 4 months ago (2015-07-27 17:40:45 UTC) #17
joedow
lgtm
5 years, 4 months ago (2015-07-27 17:44:01 UTC) #18
Sergey Ulanov
https://codereview.chromium.org/1253613002/diff/120001/remoting/test/app_remoting_connection_helper.h File remoting/test/app_remoting_connection_helper.h (right): https://codereview.chromium.org/1253613002/diff/120001/remoting/test/app_remoting_connection_helper.h#newcode50 remoting/test/app_remoting_connection_helper.h:50: // Returns the test chromoting client. nit: this comment ...
5 years, 4 months ago (2015-07-27 18:40:25 UTC) #19
liaoyuke
Hey Joe, Sergey, Anand, Please take another look to see if you have any additional ...
5 years, 4 months ago (2015-07-27 19:02:57 UTC) #20
Sergey Ulanov
lgtm https://codereview.chromium.org/1253613002/diff/120001/remoting/test/app_remoting_latency_test_fixture.h File remoting/test/app_remoting_latency_test_fixture.h (right): https://codereview.chromium.org/1253613002/diff/120001/remoting/test/app_remoting_latency_test_fixture.h#newcode84 remoting/test/app_remoting_latency_test_fixture.h:84: virtual bool PrepareApplicationForTesting() = 0; On 2015/07/27 19:02:57, ...
5 years, 4 months ago (2015-07-27 20:08:05 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1253613002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1253613002/160001
5 years, 4 months ago (2015-07-27 21:14:34 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:160001)
5 years, 4 months ago (2015-07-27 22:42:53 UTC) #25
commit-bot: I haz the power
5 years, 4 months ago (2015-07-27 22:43:51 UTC) #26
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/4d6371eaba0106a6051282b86ef59ccd121e6bc5
Cr-Commit-Position: refs/heads/master@{#340588}

Powered by Google App Engine
This is Rietveld 408576698