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

Issue 2758713002: Avoid to use the method pointer to Callback<>::Run on gmock tests (Closed)

Created:
3 years, 9 months ago by tzik
Modified:
3 years, 9 months ago
CC:
chromium-reviews, asanka, feature-media-reviews_chromium.org, posciak+watch_chromium.org, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid to use the method pointer to Callback<>::Run on gmock tests This CL replaces a problematic method pointers to Callback::Run with testing::CreateFunctor. The method pointer to Callback::Run prevents to make it a template method or to overload it for cleaner implementation. Review-Url: https://codereview.chromium.org/2758713002 Cr-Commit-Position: refs/heads/master@{#458018} Committed: https://chromium.googlesource.com/chromium/src/+/2e53fef9596667824f9f0467fb6b2eabf1eb121e

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -14 lines) Patch
M chrome/browser/download/download_ui_controller_unittest.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_provider_impl_unittest.cc View 8 chunks +8 lines, -6 lines 0 comments Download
M media/base/pipeline_impl_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M media/renderers/video_renderer_impl_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M testing/gmock_mutant.h View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
tzik
PTAL to: asanka: //chrome/browser/download treib: //components/ntp_snippets xhwang: //media dpranke: //testing
3 years, 9 months ago (2017-03-17 06:53:13 UTC) #10
Marc Treib
ntp_snippets lgtm
3 years, 9 months ago (2017-03-17 09:37:46 UTC) #11
xhwang
media lgtm
3 years, 9 months ago (2017-03-17 16:28:53 UTC) #12
asanka
lgtm
3 years, 9 months ago (2017-03-17 17:11:03 UTC) #13
Dirk Pranke
rs- lgtm
3 years, 9 months ago (2017-03-19 21:06:25 UTC) #14
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/2758713002/1
3 years, 9 months ago (2017-03-20 03:48:18 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-20 07:15:14 UTC) #19
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/2e53fef9596667824f9f0467fb6b...

Powered by Google App Engine
This is Rietveld 408576698