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

Issue 2100653002: PageLoadTiming fixes in prep for using base::Optional (Closed)

Created:
4 years, 5 months ago by Bryan McQuade
Modified:
4 years, 5 months ago
Reviewers:
shivanisha
CC:
chromium-reviews, csharrison+watch_chromium.org, loading-reviews+metrics_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PageLoadTiming fixes in prep for using base::Optional We use PageLoadTiming with gmock in a few places. gmock sometimes passes objects to functions by value. In these cases, if PageLoadTiming contains base::Optional members, the code fails to compile on windows due to as issue with Optional's use of aligned memory. This changes updates our use of PageLoadTiming with gmock to no longer use aspects of gmock that pass PageLoadTiming by value. This factors common code into a new FakePageTimingMetricsIPCSender class, which provides the functionality we had been using gmock for. See https://groups.google.com/forum/#!topic/googletestframework/W-Hud3j_c6I for additional details on why gmock is not compatible with Optional. BUG=623556 Committed: https://crrev.com/4a92b31b73ae1410660625e7b833dde4556217ca Cr-Commit-Position: refs/heads/master@{#403266}

Patch Set 1 #

Patch Set 2 : change mocked methods to take a const reference. #

Patch Set 3 : small possible fix #

Patch Set 4 : switch to gmock matcher equality by reference. #

Patch Set 5 : fix tests #

Patch Set 6 : clean up formatting #

Patch Set 7 : remove newline #

Patch Set 8 : reduce use of gmock #

Patch Set 9 : switch to EqByRef to avoid passing PageLoadTiming by value. #

Patch Set 10 : update missed case #

Patch Set 11 : formatting #

Patch Set 12 : break gmock dep #

Patch Set 13 : cleanup #

Patch Set 14 : Fix gtest windows compile failure. #

Patch Set 15 : address remaining compile failure on windows #

Patch Set 16 : cleanup #

Patch Set 17 : cleanup #

Patch Set 18 : add missing include guard #

Patch Set 19 : revert changes to PageLoadTiming #

Messages

Total messages: 12 (6 generated)
Bryan McQuade
shivanisha, PTAL
4 years, 5 months ago (2016-06-30 12:59:23 UTC) #5
shivanisha
On 2016/06/30 at 12:59:23, bmcquade wrote: > shivanisha, PTAL LGTM
4 years, 5 months ago (2016-06-30 19:13:53 UTC) #6
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/2100653002/360001
4 years, 5 months ago (2016-06-30 19:23:45 UTC) #8
commit-bot: I haz the power
Committed patchset #19 (id:360001)
4 years, 5 months ago (2016-06-30 20:24:21 UTC) #9
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 20:24:49 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 20:28:10 UTC) #12
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/4a92b31b73ae1410660625e7b833dde4556217ca
Cr-Commit-Position: refs/heads/master@{#403266}

Powered by Google App Engine
This is Rietveld 408576698