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

Issue 1219923011: Added image pattern comparison logic for test interface and fixture. (Closed)

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

Added image pattern comparison logic including unit tests. The Image pattern comparison logic is: calculate the average color of the expected rect region on the current frame and compare it to the expected color to see if it matches. BUG= Committed: https://crrev.com/55bcb47addbc50f753487a73fb13ed5e370ae169 Cr-Commit-Position: refs/heads/master@{#338588}

Patch Set 1 : "Added image pattern comparison logic" #

Total comments: 19

Patch Set 2 : "Addressed feedback from Joe and Updated connection helper with base::ResetAndReturn()" #

Total comments: 56

Patch Set 3 : "Addressed feedback from Sergey" #

Total comments: 2

Patch Set 4 : "Minor changes on comments" #

Total comments: 11

Patch Set 5 : "Per discussion with Sergey, removed dependency on the dirty rects, which is not stable. #

Patch Set 6 : "Added unit tests for image comparison logic" #

Total comments: 46

Patch Set 7 : "Addressed feedback from Joe and fixed bug on using an empty packet to check pattern is matched" #

Total comments: 16

Patch Set 8 : "Minor update on naming and comments, also add a 10min timer to prevent bugs from hanging the syste… #

Total comments: 17

Patch Set 9 : "Minor update on naming and comments: addressed feedback from Joe and Sergey" #

Total comments: 2

Patch Set 10 : "Minor update on comments" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -79 lines) Patch
M remoting/test/app_remoting_connected_client_fixture.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M remoting/test/app_remoting_connection_helper.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M remoting/test/app_remoting_connection_helper.cc View 1 3 chunks +2 lines, -5 lines 0 comments Download
M remoting/test/app_remoting_latency_test_fixture.h View 1 2 3 4 5 6 3 chunks +2 lines, -4 lines 0 comments Download
M remoting/test/app_remoting_latency_test_fixture.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -5 lines 0 comments Download
M remoting/test/test_video_renderer.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -8 lines 0 comments Download
M remoting/test/test_video_renderer.cc View 1 2 3 4 5 6 7 8 9 8 chunks +117 lines, -30 lines 0 comments Download
M remoting/test/test_video_renderer_unittest.cc View 1 2 3 4 5 6 7 8 9 11 chunks +261 lines, -23 lines 0 comments Download

Messages

Total messages: 26 (6 generated)
liaoyuke
Hey Joe, Sergey, Anand, Please review a changelist from liaoyuke. Thank you very much! https://codereview.chromium.org/1219923011/diff/20001/remoting/test/test_video_renderer.cc ...
5 years, 5 months ago (2015-07-08 18:58:15 UTC) #3
joedow
https://codereview.chromium.org/1219923011/diff/20001/remoting/test/test_video_renderer.cc File remoting/test/test_video_renderer.cc (right): https://codereview.chromium.org/1219923011/diff/20001/remoting/test/test_video_renderer.cc#newcode57 remoting/test/test_video_renderer.cc:57: RgbaColor ColorEncode(const int red, const int green, const int ...
5 years, 5 months ago (2015-07-09 03:03:43 UTC) #4
liaoyuke
Hey Joe, Sergey, Anand, Please take a look at Patch set 2. Thank you very ...
5 years, 5 months ago (2015-07-09 18:18:32 UTC) #5
Sergey Ulanov
https://codereview.chromium.org/1219923011/diff/40001/remoting/test/app_remoting_latency_test_fixture.h File remoting/test/app_remoting_latency_test_fixture.h (right): https://codereview.chromium.org/1219923011/diff/40001/remoting/test/app_remoting_latency_test_fixture.h#newcode33 remoting/test/app_remoting_latency_test_fixture.h:33: typedef uint32 RGBA32; Please don't duplicate type definition. I ...
5 years, 5 months ago (2015-07-09 19:43:15 UTC) #6
liaoyuke
Hey Joe, Sergey, Anand, Please take a look at Patch set 3. Thank you very ...
5 years, 5 months ago (2015-07-09 23:21:02 UTC) #7
Sergey Ulanov
https://codereview.chromium.org/1219923011/diff/40001/remoting/test/test_video_renderer.cc File remoting/test/test_video_renderer.cc (right): https://codereview.chromium.org/1219923011/diff/40001/remoting/test/test_video_renderer.cc#newcode221 remoting/test/test_video_renderer.cc:221: if (ContainsRect(expected_rect_, dirty_rect)) { On 2015/07/09 23:21:01, liaoyuke wrote: ...
5 years, 5 months ago (2015-07-10 01:13:07 UTC) #8
Sergey Ulanov
https://codereview.chromium.org/1219923011/diff/80001/remoting/test/test_video_renderer.cc File remoting/test/test_video_renderer.cc (right): https://codereview.chromium.org/1219923011/diff/80001/remoting/test/test_video_renderer.cc#newcode26 remoting/test/test_video_renderer.cc:26: int red_; don't need _ suffix for struct fields. ...
5 years, 5 months ago (2015-07-10 01:21:56 UTC) #9
liaoyuke
Hey Joe, Sergey, Anand, I have get rid of the dependency on dirty rects, which ...
5 years, 5 months ago (2015-07-10 16:22:30 UTC) #10
liaoyuke
Hey Joe, Sergey, Anand, I have added unit tests for the image pattern comparison logc. ...
5 years, 5 months ago (2015-07-10 21:45:30 UTC) #11
joedow
https://codereview.chromium.org/1219923011/diff/120001/remoting/test/app_remoting_latency_test_fixture.cc File remoting/test/app_remoting_latency_test_fixture.cc (right): https://codereview.chromium.org/1219923011/diff/120001/remoting/test/app_remoting_latency_test_fixture.cc#newcode55 remoting/test/app_remoting_latency_test_fixture.cc:55: DCHECK(thread_checker_.CalledOnValidThread()); remove const https://codereview.chromium.org/1219923011/diff/120001/remoting/test/app_remoting_latency_test_fixture.h File remoting/test/app_remoting_latency_test_fixture.h (right): https://codereview.chromium.org/1219923011/diff/120001/remoting/test/app_remoting_latency_test_fixture.h#newcode47 remoting/test/app_remoting_latency_test_fixture.h:47: ...
5 years, 5 months ago (2015-07-10 23:39:17 UTC) #12
liaoyuke
Hey Joe, Sergey, Anand, I have addressed feedback from Joe and fixed bugs on using ...
5 years, 5 months ago (2015-07-13 16:05:39 UTC) #13
joedow
https://codereview.chromium.org/1219923011/diff/140001/remoting/test/test_video_renderer.cc File remoting/test/test_video_renderer.cc (right): https://codereview.chromium.org/1219923011/diff/140001/remoting/test/test_video_renderer.cc#newcode32 remoting/test/test_video_renderer.cc:32: RGBValue ConvertRGBA32Tovalue(uint32_t color) { Why a uint32_t instead of ...
5 years, 5 months ago (2015-07-13 16:27:51 UTC) #14
liaoyuke
Hey Joe, Sergey, Anand, I have some minor update on naming and comments, also added ...
5 years, 5 months ago (2015-07-13 18:13:00 UTC) #15
joedow
https://codereview.chromium.org/1219923011/diff/160001/remoting/test/test_video_renderer.cc File remoting/test/test_video_renderer.cc (right): https://codereview.chromium.org/1219923011/diff/160001/remoting/test/test_video_renderer.cc#newcode25 remoting/test/test_video_renderer.cc:25: RGBValue(int r, int g, int b) : red(r), green(g), ...
5 years, 5 months ago (2015-07-13 19:30:03 UTC) #16
Sergey Ulanov
https://codereview.chromium.org/1219923011/diff/160001/remoting/test/test_video_renderer.cc File remoting/test/test_video_renderer.cc (right): https://codereview.chromium.org/1219923011/diff/160001/remoting/test/test_video_renderer.cc#newcode72 remoting/test/test_video_renderer.cc:72: RGBValue CalculateAverageColorvalue(const webrtc::DesktopRect& rect) const; s/value/Value/ or just remove ...
5 years, 5 months ago (2015-07-13 19:42:18 UTC) #17
liaoyuke
Hey Joe, Sergey, Anand, Please take a look at patch set 9. Thank you very ...
5 years, 5 months ago (2015-07-13 20:43:19 UTC) #19
joedow
lgtm https://codereview.chromium.org/1219923011/diff/200001/remoting/test/test_video_renderer_unittest.cc File remoting/test/test_video_renderer_unittest.cc (right): https://codereview.chromium.org/1219923011/diff/200001/remoting/test/test_video_renderer_unittest.cc#newcode145 remoting/test/test_video_renderer_unittest.cc:145: // extremely long time as 10 min is ...
5 years, 5 months ago (2015-07-13 20:53:03 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1219923011/240001
5 years, 5 months ago (2015-07-13 23:20:06 UTC) #24
commit-bot: I haz the power
Committed patchset #10 (id:240001)
5 years, 5 months ago (2015-07-13 23:25:48 UTC) #25
commit-bot: I haz the power
5 years, 5 months ago (2015-07-13 23:26:49 UTC) #26
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/55bcb47addbc50f753487a73fb13ed5e370ae169
Cr-Commit-Position: refs/heads/master@{#338588}

Powered by Google App Engine
This is Rietveld 408576698