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

Issue 2394253002: Fix the snapshot_cache unittests. (Closed)

Created:
4 years, 2 months ago by jif
Modified:
4 years, 1 month ago
Reviewers:
jif-google, sdefresne
CC:
chromium-reviews, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the snapshot_cache unittests. This fix is necessary to enable by default the iPad tab switcher. It is a partial reland of https://codereview.chromium.org/1725533004 This CL: -Always register/deregister for notifications. -Centralizes the logic to use a LRU cache. -Centralizes the logic to use an in-memory cache. -Replaces msarda with jif in OWNERS. -Triggers memory warning instead of calling |handleLowMemory| from tests. BUG=None Committed: https://crrev.com/8eb38982d179e056b228269832582c1f2c998a3a Cr-Commit-Position: refs/heads/master@{#427302}

Patch Set 1 #

Patch Set 2 : 2 #

Total comments: 6

Patch Set 3 : Addressed comments. #

Patch Set 4 : Rebased. #

Patch Set 5 : Fixed test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -94 lines) Patch
M ios/chrome/browser/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/snapshots/OWNERS View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/snapshots/snapshot_cache.mm View 1 8 chunks +45 lines, -49 lines 0 comments Download
A ios/chrome/browser/snapshots/snapshot_cache_internal.h View 1 1 chunk +28 lines, -0 lines 0 comments Download
M ios/chrome/browser/snapshots/snapshot_cache_unittest.mm View 1 2 3 4 10 chunks +26 lines, -44 lines 0 comments Download

Messages

Total messages: 40 (25 generated)
jif
ptal (but don't commit)
4 years, 2 months ago (2016-10-06 17:54:57 UTC) #3
sdefresne
lgtm
4 years, 2 months ago (2016-10-06 20:26:45 UTC) #4
jif
On 2016/10/06 20:26:45, sdefresne wrote: > lgtm ptal again. please note that the patch is ...
4 years, 2 months ago (2016-10-07 14:41:08 UTC) #13
sdefresne
https://codereview.chromium.org/2394253002/diff/40001/ios/chrome/browser/snapshots/snapshot_cache.mm File ios/chrome/browser/snapshots/snapshot_cache.mm (right): https://codereview.chromium.org/2394253002/diff/40001/ios/chrome/browser/snapshots/snapshot_cache.mm#newcode567 ios/chrome/browser/snapshots/snapshot_cache.mm:567: if ([self usesLRUCache]) The test changed, is this expected? ...
4 years, 2 months ago (2016-10-07 14:56:19 UTC) #14
jif
ptal. I've reduced the scope of this CL: it now simply fixes the snapshot_cache unittests. ...
4 years, 1 month ago (2016-10-24 15:10:03 UTC) #18
sdefresne
lgtm
4 years, 1 month ago (2016-10-24 16:58:43 UTC) #20
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/2394253002/60001
4 years, 1 month ago (2016-10-24 16:59:38 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/292274) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 1 month ago (2016-10-24 17:02:46 UTC) #24
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/2394253002/80001
4 years, 1 month ago (2016-10-24 17:27:33 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/93074)
4 years, 1 month ago (2016-10-24 17:51:14 UTC) #29
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/2394253002/100001
4 years, 1 month ago (2016-10-24 19:12:22 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/151422)
4 years, 1 month ago (2016-10-24 23:39:15 UTC) #34
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/2394253002/100001
4 years, 1 month ago (2016-10-25 08:27:47 UTC) #36
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 1 month ago (2016-10-25 09:41:21 UTC) #38
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 09:43:31 UTC) #40
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/8eb38982d179e056b228269832582c1f2c998a3a
Cr-Commit-Position: refs/heads/master@{#427302}

Powered by Google App Engine
This is Rietveld 408576698