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

Issue 2639513002: mash: Do not use InProcessContextFactory in tests. (Closed)

Created:
3 years, 11 months ago by sadrul
Modified:
3 years, 11 months ago
Reviewers:
danakj, Fady Samuel, sky
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Do not use InProcessContextFactory in tests. InProcessContextFactory provides both ContextFactory and ContextFactoryPrivate implementations. The latter should not be needed in the mus-client side. And the ContextFactory implementation in InProcessContextFactory also directly talks to the display compositor (e.g. uses SurfaceManager). So avoid using it in mash_unittests, and instead, create a DummyContextFactory that doesn't do much. BUG=674001 Review-Url: https://codereview.chromium.org/2639513002 Cr-Commit-Position: refs/heads/master@{#444900} Committed: https://chromium.googlesource.com/chromium/src/+/a2fd53c7b0a8b9f0c657e94257059879c8fe7a27

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -12 lines) Patch
M mash/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A mash/test/DEPS View 1 chunk +6 lines, -0 lines 0 comments Download
M mash/test/mash_test_suite.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M mash/test/mash_test_suite.cc View 1 2 chunks +42 lines, -12 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
sadrul
3 years, 11 months ago (2017-01-19 04:24:48 UTC) #6
Fady Samuel
Sweet! I'm surprised all tests still pass! I vaguely recall trying this and not passing? ...
3 years, 11 months ago (2017-01-19 04:45:20 UTC) #7
sadrul
+sky@ for owners
3 years, 11 months ago (2017-01-19 07:07:59 UTC) #9
Fady Samuel
not: talks to display compositor not display manager in description.
3 years, 11 months ago (2017-01-19 14:08:22 UTC) #10
sky
On 2017/01/19 14:08:22, Fady Samuel wrote: > not: talks to display compositor not display manager ...
3 years, 11 months ago (2017-01-19 16:37:40 UTC) #11
sky
LGTM https://codereview.chromium.org/2639513002/diff/1/mash/test/mash_test_suite.h File mash/test/mash_test_suite.h (right): https://codereview.chromium.org/2639513002/diff/1/mash/test/mash_test_suite.h#newcode21 mash/test/mash_test_suite.h:21: class DummyContextFactory; TestContextFactory?
3 years, 11 months ago (2017-01-19 16:38:12 UTC) #12
sadrul
Corrected the CL description too (s/display manager/display compositor/). https://codereview.chromium.org/2639513002/diff/1/mash/test/mash_test_suite.h File mash/test/mash_test_suite.h (right): https://codereview.chromium.org/2639513002/diff/1/mash/test/mash_test_suite.h#newcode21 mash/test/mash_test_suite.h:21: class ...
3 years, 11 months ago (2017-01-19 19:00:59 UTC) #15
sadrul
+danakj@ for cc DEPS
3 years, 11 months ago (2017-01-19 20:03:05 UTC) #18
danakj
LGTM
3 years, 11 months ago (2017-01-19 20:20:20 UTC) #19
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/2639513002/20001
3 years, 11 months ago (2017-01-19 20:22:13 UTC) #22
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 00:54:17 UTC) #25
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/a2fd53c7b0a8b9f0c657e9425705...

Powered by Google App Engine
This is Rietveld 408576698