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

Issue 2938023002: [PresentationService] Improve PresentationServiceImplTest. (Closed)

Created:
3 years, 6 months ago by imcheng
Modified:
3 years, 6 months ago
Reviewers:
mark a. foltz, zhaobin
CC:
chromium-reviews, darin-cc_chromium.org, jam, mfoltz+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[PresentationService] Improve PresentationServiceImplTest. - Remove PresentationServicePtr - the unit tests should just invoke the PresentationServiceImpl directly for simplicity. This also allows us to remove the usage of RunLoop::QuitClosure and RunLoop::Run and replace with RunLoop::RunUntilIdle. - Remove a bunch of FRIEND_CLASS_TEST_PREFIX and move the Mojo PresentationService overrides to public. - Remove other unused functions in the test. BUG=699225 Review-Url: https://codereview.chromium.org/2938023002 Cr-Commit-Position: refs/heads/master@{#479748} Committed: https://chromium.googlesource.com/chromium/src/+/fafb67d05a69c02a39a451f36a169bd76f10f453

Patch Set 1 : . #

Total comments: 2

Patch Set 2 : Addressed comments #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -248 lines) Patch
M content/browser/presentation/presentation_service_impl.h View 1 2 2 chunks +25 lines, -44 lines 0 comments Download
M content/browser/presentation/presentation_service_impl_unittest.cc View 1 2 15 chunks +133 lines, -204 lines 0 comments Download

Messages

Total messages: 25 (18 generated)
imcheng
Bin: PTAL, thanks!
3 years, 6 months ago (2017-06-14 19:54:54 UTC) #6
zhaobin
https://codereview.chromium.org/2938023002/diff/40001/content/browser/presentation/presentation_service_impl_unittest.cc File content/browser/presentation/presentation_service_impl_unittest.cc (right): https://codereview.chromium.org/2938023002/diff/40001/content/browser/presentation/presentation_service_impl_unittest.cc#newcode307 content/browser/presentation/presentation_service_impl_unittest.cc:307: void ExpectNewPresentationCallbackSuccess( Would it be simpler if we use ...
3 years, 6 months ago (2017-06-15 02:40:26 UTC) #7
imcheng
https://codereview.chromium.org/2938023002/diff/40001/content/browser/presentation/presentation_service_impl_unittest.cc File content/browser/presentation/presentation_service_impl_unittest.cc (right): https://codereview.chromium.org/2938023002/diff/40001/content/browser/presentation/presentation_service_impl_unittest.cc#newcode307 content/browser/presentation/presentation_service_impl_unittest.cc:307: void ExpectNewPresentationCallbackSuccess( On 2017/06/15 02:40:25, zhaobin wrote: > Would ...
3 years, 6 months ago (2017-06-15 05:39:23 UTC) #8
zhaobin
lgtm
3 years, 6 months ago (2017-06-15 17:03:18 UTC) #17
mark a. foltz
lgtm Thanks for doing this, much nicer :-)
3 years, 6 months ago (2017-06-15 17:14:48 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/2938023002/80001
3 years, 6 months ago (2017-06-15 17:26:15 UTC) #21
commit-bot: I haz the power
3 years, 6 months ago (2017-06-15 17:30:50 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/fafb67d05a69c02a39a451f36a16...

Powered by Google App Engine
This is Rietveld 408576698