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

Issue 2038183002: Refactor ResizingHostObserver tests (Closed)

Created:
4 years, 6 months ago by rkjnsn
Modified:
4 years, 6 months ago
Reviewers:
Lambros, Jamie
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

Refactor ResizingHostObserver tests Remove a couple of possible sources of dangling pointers and make the tests cleaner and more compact. Committed: https://crrev.com/7142e66c06dcd7f7a5b33dec7004a700231b951d Cr-Commit-Position: refs/heads/master@{#398152}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Attempt to better follow style-guide recommendations #

Patch Set 3 : Address comments #

Total comments: 2

Patch Set 4 : Change CHECK to ASSERT; change some EXPECTs to have expected value first #

Patch Set 5 : Replace {} with std::vector<ScreenResolution>() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -142 lines) Patch
M remoting/host/resizing_host_observer_unittest.cc View 1 2 3 4 5 chunks +117 lines, -142 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
rkjnsn
I refactored the ResizingHostObserver a bit to make things safer and easier. https://codereview.chromium.org/2038183002/diff/1/remoting/host/resizing_host_observer_unittest.cc File remoting/host/resizing_host_observer_unittest.cc ...
4 years, 6 months ago (2016-06-03 21:33:37 UTC) #2
Jamie
LGTM with nits. https://codereview.chromium.org/2038183002/diff/1/remoting/host/resizing_host_observer_unittest.cc File remoting/host/resizing_host_observer_unittest.cc (right): https://codereview.chromium.org/2038183002/diff/1/remoting/host/resizing_host_observer_unittest.cc#newcode106 remoting/host/resizing_host_observer_unittest.cc:106: void SetDesktopResizer(const ScreenResolution& initial_resolution, Maybe rename ...
4 years, 6 months ago (2016-06-03 23:47:20 UTC) #3
rkjnsn
https://codereview.chromium.org/2038183002/diff/1/remoting/host/resizing_host_observer_unittest.cc File remoting/host/resizing_host_observer_unittest.cc (right): https://codereview.chromium.org/2038183002/diff/1/remoting/host/resizing_host_observer_unittest.cc#newcode106 remoting/host/resizing_host_observer_unittest.cc:106: void SetDesktopResizer(const ScreenResolution& initial_resolution, On 2016/06/03 23:47:20, Jamie wrote: ...
4 years, 6 months ago (2016-06-04 00:08:21 UTC) #4
Jamie
https://codereview.chromium.org/2038183002/diff/1/remoting/host/resizing_host_observer_unittest.cc File remoting/host/resizing_host_observer_unittest.cc (right): https://codereview.chromium.org/2038183002/diff/1/remoting/host/resizing_host_observer_unittest.cc#newcode128 remoting/host/resizing_host_observer_unittest.cc:128: for (auto client = client_sizes.begin(), expected = expected_sizes.begin(); On ...
4 years, 6 months ago (2016-06-04 00:29:48 UTC) #5
Jamie
https://codereview.chromium.org/2038183002/diff/1/remoting/host/resizing_host_observer_unittest.cc File remoting/host/resizing_host_observer_unittest.cc (right): https://codereview.chromium.org/2038183002/diff/1/remoting/host/resizing_host_observer_unittest.cc#newcode128 remoting/host/resizing_host_observer_unittest.cc:128: for (auto client = client_sizes.begin(), expected = expected_sizes.begin(); On ...
4 years, 6 months ago (2016-06-04 00:32:05 UTC) #6
rkjnsn
https://codereview.chromium.org/2038183002/diff/1/remoting/host/resizing_host_observer_unittest.cc File remoting/host/resizing_host_observer_unittest.cc (right): https://codereview.chromium.org/2038183002/diff/1/remoting/host/resizing_host_observer_unittest.cc#newcode128 remoting/host/resizing_host_observer_unittest.cc:128: for (auto client = client_sizes.begin(), expected = expected_sizes.begin(); On ...
4 years, 6 months ago (2016-06-04 00:43:53 UTC) #7
rkjnsn
Updated to address comments. https://codereview.chromium.org/2038183002/diff/40001/remoting/host/resizing_host_observer_unittest.cc File remoting/host/resizing_host_observer_unittest.cc (right): https://codereview.chromium.org/2038183002/diff/40001/remoting/host/resizing_host_observer_unittest.cc#newcode129 remoting/host/resizing_host_observer_unittest.cc:129: << "Client and expected vectors ...
4 years, 6 months ago (2016-06-06 18:26:47 UTC) #8
Jamie
lgtm https://codereview.chromium.org/2038183002/diff/1/remoting/host/resizing_host_observer_unittest.cc File remoting/host/resizing_host_observer_unittest.cc (right): https://codereview.chromium.org/2038183002/diff/1/remoting/host/resizing_host_observer_unittest.cc#newcode128 remoting/host/resizing_host_observer_unittest.cc:128: for (auto client = client_sizes.begin(), expected = expected_sizes.begin(); ...
4 years, 6 months ago (2016-06-06 19:12:42 UTC) #9
Jamie
lgtm
4 years, 6 months ago (2016-06-06 21:28:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038183002/80001
4 years, 6 months ago (2016-06-06 21:59:50 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-06 22:56:36 UTC) #13
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 22:59:06 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7142e66c06dcd7f7a5b33dec7004a700231b951d
Cr-Commit-Position: refs/heads/master@{#398152}

Powered by Google App Engine
This is Rietveld 408576698