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

Issue 2374893002: Adds AshTest (Closed)

Created:
4 years, 2 months ago by sky
Modified:
4 years, 2 months ago
Reviewers:
James Cook, reveman
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds AshTest AshTest is a new base class for tests that use ash/common. AshTest is-a testing::Test and designed to be a mostly drop in replacement for AshTestBase. AshTest calls through to AshTestImpl for the implementation. An implementation of AshTestImpl is provided for aura and mus, depending upon the target you link against. One notable difference between AshTest and AndTestBase is CreateWindow returns a WindowOwner, which has a WmWindow and in its destructor calls WmWindow::destroy(). This is done to address the different lifetimes. Future patches will make use of the AshTest. BUG=none TEST=test only change R=jamescook@chromium.org,reveman@chromium.org Committed: https://crrev.com/cd81e7cb288fb9f67310dc7ccc13a87c7e5d9b44 Cr-Commit-Position: refs/heads/master@{#421592}

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 22

Patch Set 3 : feedback and deps #

Patch Set 4 : real feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+507 lines, -2 lines) Patch
M ash/BUILD.gn View 4 chunks +21 lines, -0 lines 0 comments Download
A ash/common/test/ash_test.h View 1 2 3 1 chunk +96 lines, -0 lines 1 comment Download
A ash/common/test/ash_test.cc View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
A ash/common/test/ash_test_impl.h View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
M ash/mus/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A ash/mus/test/ash_test_impl_mus.h View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
A ash/mus/test/ash_test_impl_mus.cc View 1 2 3 1 chunk +86 lines, -0 lines 0 comments Download
M ash/mus/test/wm_test_base.h View 2 chunks +3 lines, -0 lines 0 comments Download
M ash/test/ash_test_base.h View 2 chunks +3 lines, -0 lines 0 comments Download
A ash/test/ash_test_impl_aura.h View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
A ash/test/ash_test_impl_aura.cc View 1 2 3 1 chunk +86 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M components/exo/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (12 generated)
sky
4 years, 2 months ago (2016-09-27 23:27:49 UTC) #1
James Cook
So nice to see this coming! https://codereview.chromium.org/2374893002/diff/20001/ash/common/test/ash_test.cc File ash/common/test/ash_test.cc (right): https://codereview.chromium.org/2374893002/diff/20001/ash/common/test/ash_test.cc#newcode1 ash/common/test/ash_test.cc:1: // Copyright 2015 ...
4 years, 2 months ago (2016-09-28 01:19:42 UTC) #6
reveman
components/exo lgtm
4 years, 2 months ago (2016-09-28 14:34:43 UTC) #7
sky
https://codereview.chromium.org/2374893002/diff/20001/ash/common/test/ash_test.cc File ash/common/test/ash_test.cc (right): https://codereview.chromium.org/2374893002/diff/20001/ash/common/test/ash_test.cc#newcode1 ash/common/test/ash_test.cc:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 2 months ago (2016-09-28 17:31:45 UTC) #8
James Cook
Did you forget to commit/upload a patch? I'm not seeing some of the changes you ...
4 years, 2 months ago (2016-09-28 17:34:56 UTC) #11
sky
On 2016/09/28 17:34:56, James Cook wrote: > Did you forget to commit/upload a patch? I'm ...
4 years, 2 months ago (2016-09-28 18:04:49 UTC) #14
James Cook
LGTM! https://codereview.chromium.org/2374893002/diff/60001/ash/common/test/ash_test.h File ash/common/test/ash_test.h (right): https://codereview.chromium.org/2374893002/diff/60001/ash/common/test/ash_test.h#newcode31 ash/common/test/ash_test.h:31: // destructor. Nice comment.
4 years, 2 months ago (2016-09-28 18:13:53 UTC) #15
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/2374893002/60001
4 years, 2 months ago (2016-09-28 18:17:25 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-28 18:56:25 UTC) #20
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 18:58:33 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cd81e7cb288fb9f67310dc7ccc13a87c7e5d9b44
Cr-Commit-Position: refs/heads/master@{#421592}

Powered by Google App Engine
This is Rietveld 408576698