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

Issue 2466883002: Add TabLoaderTest (Closed)

Created:
4 years, 1 month ago by hajimehoshi
Modified:
4 years, 1 month ago
Reviewers:
haraken, chrisha, sky, bashi
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add TabLoaderTest This CL introduces TabLoaderTest to test TabLoader::OnMemoryStateChange introduced at crrev.com/2370753002. BUG=639700 TEST=unit_tests --gtest_filter=TabLoaderTest.* Committed: https://crrev.com/eeaf192119af3bced58245ead864805f8eb2a5f2 Cr-Commit-Position: refs/heads/master@{#430584}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Address on sky's review #

Total comments: 5

Patch Set 3 : (rebase) #

Patch Set 4 : Address on reviews #

Total comments: 2

Patch Set 5 : Address on bashi's review; Fix compile errors on Android #

Patch Set 6 : (rebase) #

Total comments: 2

Patch Set 7 : Fix compile error #

Patch Set 8 : Fix include guard #

Patch Set 9 : Disable tests on macOS #

Patch Set 10 : Use ScopedFeatureList #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -2 lines) Patch
M chrome/browser/sessions/tab_loader.h View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/sessions/tab_loader.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
A chrome/browser/sessions/tab_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +74 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/memory/memory_coordinator.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
A content/public/test/memory_coordinator_test_utils.h View 1 2 3 4 5 6 7 8 9 1 chunk +15 lines, -0 lines 0 comments Download
A content/public/test/memory_coordinator_test_utils.cc View 1 2 3 4 5 6 7 8 9 1 chunk +24 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 59 (35 generated)
hajimehoshi
PTAL
4 years, 1 month ago (2016-11-01 12:20:02 UTC) #2
haraken
LGTM
4 years, 1 month ago (2016-11-01 13:32:55 UTC) #7
sky
https://codereview.chromium.org/2466883002/diff/1/chrome/browser/sessions/DEPS File chrome/browser/sessions/DEPS (right): https://codereview.chromium.org/2466883002/diff/1/chrome/browser/sessions/DEPS#newcode9 chrome/browser/sessions/DEPS:9: "+content/browser/memory/memory_coordinator.h", My understanding is that chrome code should only ...
4 years, 1 month ago (2016-11-01 15:23:14 UTC) #8
hajimehoshi
Thank you! https://codereview.chromium.org/2466883002/diff/1/chrome/browser/sessions/DEPS File chrome/browser/sessions/DEPS (right): https://codereview.chromium.org/2466883002/diff/1/chrome/browser/sessions/DEPS#newcode9 chrome/browser/sessions/DEPS:9: "+content/browser/memory/memory_coordinator.h", On 2016/11/01 15:23:14, sky wrote: > ...
4 years, 1 month ago (2016-11-02 09:34:13 UTC) #9
sky
Thanks for moving files to content/public. I have no other issues beyond the one below. ...
4 years, 1 month ago (2016-11-02 15:40:26 UTC) #14
sky
On 2016/11/02 15:40:26, sky wrote: > Thanks for moving files to content/public. I have no ...
4 years, 1 month ago (2016-11-02 15:40:56 UTC) #15
bashi
https://codereview.chromium.org/2466883002/diff/20001/content/public/browser/memory_coordinator_delegate.cc File content/public/browser/memory_coordinator_delegate.cc (right): https://codereview.chromium.org/2466883002/diff/20001/content/public/browser/memory_coordinator_delegate.cc#newcode13 content/public/browser/memory_coordinator_delegate.cc:13: void EnableFeaturesForTesting() { Can we put these implementations in ...
4 years, 1 month ago (2016-11-03 23:31:18 UTC) #16
hajimehoshi
Thank you! https://codereview.chromium.org/2466883002/diff/20001/content/public/browser/memory_coordinator_delegate.cc File content/public/browser/memory_coordinator_delegate.cc (right): https://codereview.chromium.org/2466883002/diff/20001/content/public/browser/memory_coordinator_delegate.cc#newcode13 content/public/browser/memory_coordinator_delegate.cc:13: void EnableFeaturesForTesting() { On 2016/11/03 23:31:18, bashi1 ...
4 years, 1 month ago (2016-11-07 10:54:32 UTC) #23
hajimehoshi
On 2016/11/02 15:40:56, sky wrote: > On 2016/11/02 15:40:26, sky wrote: > > Thanks for ...
4 years, 1 month ago (2016-11-07 10:55:07 UTC) #24
bashi
https://codereview.chromium.org/2466883002/diff/60001/content/public/test/memory_coordinator_test_utils.h File content/public/test/memory_coordinator_test_utils.h (right): https://codereview.chromium.org/2466883002/diff/60001/content/public/test/memory_coordinator_test_utils.h#newcode11 content/public/test/memory_coordinator_test_utils.h:11: void EnableFeaturesForTesting(); content::EnableFeaturesForTesting() sounds a bit generic to me ...
4 years, 1 month ago (2016-11-07 14:11:30 UTC) #27
sky
Ok, thanks for the comment. LGTM
4 years, 1 month ago (2016-11-07 17:07:04 UTC) #28
hajimehoshi
Thank you! https://codereview.chromium.org/2466883002/diff/60001/content/public/test/memory_coordinator_test_utils.h File content/public/test/memory_coordinator_test_utils.h (right): https://codereview.chromium.org/2466883002/diff/60001/content/public/test/memory_coordinator_test_utils.h#newcode11 content/public/test/memory_coordinator_test_utils.h:11: void EnableFeaturesForTesting(); On 2016/11/07 14:11:30, bashi1 wrote: ...
4 years, 1 month ago (2016-11-08 06:03:04 UTC) #31
bashi
lgtm. Thanks for being patient with review comments! https://codereview.chromium.org/2466883002/diff/100001/content/public/test/memory_coordinator_test_utils.h File content/public/test/memory_coordinator_test_utils.h (right): https://codereview.chromium.org/2466883002/diff/100001/content/public/test/memory_coordinator_test_utils.h#newcode5 content/public/test/memory_coordinator_test_utils.h:5: #ifndef ...
4 years, 1 month ago (2016-11-08 06:19:21 UTC) #36
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/2466883002/130001
4 years, 1 month ago (2016-11-08 06:24:41 UTC) #41
hajimehoshi
Thank you! https://codereview.chromium.org/2466883002/diff/100001/content/public/test/memory_coordinator_test_utils.h File content/public/test/memory_coordinator_test_utils.h (right): https://codereview.chromium.org/2466883002/diff/100001/content/public/test/memory_coordinator_test_utils.h#newcode5 content/public/test/memory_coordinator_test_utils.h:5: #ifndef CONTENT_PUBLIC_BROWSER_MEMORY_COORDINATOR_TEST_UTILS_H_ On 2016/11/08 06:19:21, bashi1 wrote: ...
4 years, 1 month ago (2016-11-08 06:24:44 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/330883)
4 years, 1 month ago (2016-11-08 07:47:25 UTC) #44
hajimehoshi
> [3707:1287:1107/232955:1610377166186:FATAL:memory_monitor.cc(28)] Check failed: false. This seems NOTREACHED() is called in CreateMemoryMonitor(), which bashi@ worked ...
4 years, 1 month ago (2016-11-08 08:28:19 UTC) #45
bashi
On 2016/11/08 08:28:19, hajimehoshi wrote: > > [3707:1287:1107/232955:1610377166186:FATAL:memory_monitor.cc(28)] Check > failed: false. > > This ...
4 years, 1 month ago (2016-11-08 08:36:53 UTC) #46
hajimehoshi
On 2016/11/08 08:36:53, bashi1 wrote: > On 2016/11/08 08:28:19, hajimehoshi wrote: > > > [3707:1287:1107/232955:1610377166186:FATAL:memory_monitor.cc(28)] ...
4 years, 1 month ago (2016-11-08 08:59:48 UTC) #49
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/2466883002/150001
4 years, 1 month ago (2016-11-08 08:59:54 UTC) #50
commit-bot: I haz the power
Failed to apply patch for content/browser/memory/memory_coordinator_browsertest.cc: While running git apply --index -3 -p1; error: patch ...
4 years, 1 month ago (2016-11-08 09:55:32 UTC) #52
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/2466883002/190001
4 years, 1 month ago (2016-11-08 10:38:06 UTC) #56
commit-bot: I haz the power
Committed patchset #10 (id:190001)
4 years, 1 month ago (2016-11-08 11:56:54 UTC) #57
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 11:59:36 UTC) #59
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/eeaf192119af3bced58245ead864805f8eb2a5f2
Cr-Commit-Position: refs/heads/master@{#430584}

Powered by Google App Engine
This is Rietveld 408576698