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

Issue 2407153008: Delete TestDisplaySnapshot and update tests. (Closed)

Created:
4 years, 2 months ago by kylechar
Modified:
4 years, 1 month ago
Reviewers:
oshima
CC:
chromium-reviews, kalyank, sadrul, oshima+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Delete TestDisplaySnapshot and update tests. Replace TestDisplaySnapshot with FakeDisplaySnapshot in tests. FakeDisplaySnapshot has builder that makes it more readable. Delete an unncessary build target along with TestDisplaySnapshot. Tests should be unchanged for the most part. One test was split into two tests where two very different behaviours were being checked. Also update tests to use C++11 features where possible. Mostly replacing raw pointers with unique_ptr<> and NULL with nullptr. BUG=none Committed: https://crrev.com/c354dd23b3dba31cd144ffa04e072fe330acc7c3 Cr-Commit-Position: refs/heads/master@{#427147}

Patch Set 1 #

Patch Set 2 : Cleanup. #

Patch Set 3 : Rebase and cleanup. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+810 lines, -1032 lines) Patch
M ash/BUILD.gn View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M ash/display/display_change_observer_chromeos_unittest.cc View 1 2 9 chunks +114 lines, -166 lines 0 comments Download
M ash/display/display_color_manager_chromeos_unittest.cc View 1 7 chunks +62 lines, -91 lines 0 comments Download
M ash/display/projecting_observer_chromeos_unittest.cc View 1 2 1 chunk +13 lines, -9 lines 0 comments Download
M ash/wm/lock_state_controller_unittest.cc View 3 chunks +20 lines, -20 lines 0 comments Download
M ui/display/BUILD.gn View 2 chunks +0 lines, -26 lines 0 comments Download
M ui/display/chromeos/apply_content_protection_task_unittest.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M ui/display/chromeos/configure_displays_task_unittest.cc View 14 chunks +57 lines, -53 lines 0 comments Download
M ui/display/chromeos/display_configurator_unittest.cc View 1 2 68 chunks +460 lines, -489 lines 0 comments Download
M ui/display/chromeos/query_content_protection_task_unittest.cc View 2 chunks +6 lines, -6 lines 0 comments Download
D ui/display/chromeos/test/test_display_snapshot.h View 1 chunk +0 lines, -50 lines 0 comments Download
D ui/display/chromeos/test/test_display_snapshot.cc View 1 chunk +0 lines, -54 lines 0 comments Download
M ui/display/chromeos/update_display_configuration_task_unittest.cc View 13 chunks +72 lines, -60 lines 0 comments Download

Messages

Total messages: 17 (12 generated)
kylechar
4 years, 2 months ago (2016-10-21 16:11:25 UTC) #11
oshima
lgtm
4 years, 1 month ago (2016-10-24 18:29:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2407153008/40001
4 years, 1 month ago (2016-10-24 18:35:55 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-10-24 21:04:18 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 21:06:52 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c354dd23b3dba31cd144ffa04e072fe330acc7c3
Cr-Commit-Position: refs/heads/master@{#427147}

Powered by Google App Engine
This is Rietveld 408576698