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

Issue 2448953002: Add MemoryCoordinatorProxy::SetCurrentMemoryStateForTesting (Closed)

Created:
4 years, 1 month ago by hajimehoshi
Modified:
4 years, 1 month ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, gavinp+memory_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add MemoryCoordinatorProxy::SetCurrentMemoryStateForTesting This CL instroduces MemoryCoordinatorProxy:: SetCurrentMemoryStateForTesting to set the current memory state for testing. This is needed to cover MemoryCoordinatorClients functions in tests. BUG=639700 TEST=content_unittests --gtest_filter=MemoryCoordinatorImplTest.* Committed: https://crrev.com/41c89184c969af97c6b9ac9f262f051b5557fdfc Cr-Commit-Position: refs/heads/master@{#427636}

Patch Set 1 #

Patch Set 2 : (rebase) #

Patch Set 3 : Add tests #

Total comments: 2

Patch Set 4 : Address on bashi's review #

Patch Set 5 : Add tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -5 lines) Patch
M base/memory/memory_coordinator_proxy.h View 1 chunk +11 lines, -2 lines 0 comments Download
M base/memory/memory_coordinator_proxy.cc View 1 chunk +14 lines, -3 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/memory/memory_coordinator.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/memory/memory_coordinator.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/memory/memory_coordinator_impl.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/memory/memory_coordinator_impl.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M content/browser/memory/memory_coordinator_impl_unittest.cc View 1 2 3 4 2 chunks +34 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 36 (21 generated)
hajimehoshi
PTAL
4 years, 1 month ago (2016-10-25 10:13:34 UTC) #2
haraken
Can we add a test?
4 years, 1 month ago (2016-10-25 10:40:58 UTC) #8
hajimehoshi
On 2016/10/25 10:40:58, haraken wrote: > Can we add a test? Done.
4 years, 1 month ago (2016-10-25 11:07:35 UTC) #14
haraken
LGTM
4 years, 1 month ago (2016-10-25 12:29:15 UTC) #18
Avi (use Gerrit)
lgtm
4 years, 1 month ago (2016-10-25 15:11:21 UTC) #19
danakj
LGTM
4 years, 1 month ago (2016-10-25 20:16:39 UTC) #20
bashi
https://codereview.chromium.org/2448953002/diff/60001/content/browser/memory/memory_coordinator_impl.cc File content/browser/memory/memory_coordinator_impl.cc (right): https://codereview.chromium.org/2448953002/diff/60001/content/browser/memory/memory_coordinator_impl.cc#newcode119 content/browser/memory/memory_coordinator_impl.cc:119: current_state_ = memory_state; Don't we have to trigger OnMemoryStateChange() ...
4 years, 1 month ago (2016-10-25 23:29:02 UTC) #21
hajimehoshi
Thank you! https://codereview.chromium.org/2448953002/diff/60001/content/browser/memory/memory_coordinator_impl.cc File content/browser/memory/memory_coordinator_impl.cc (right): https://codereview.chromium.org/2448953002/diff/60001/content/browser/memory/memory_coordinator_impl.cc#newcode119 content/browser/memory/memory_coordinator_impl.cc:119: current_state_ = memory_state; On 2016/10/25 23:29:02, bashi1 ...
4 years, 1 month ago (2016-10-26 07:12:44 UTC) #22
haraken
On 2016/10/26 07:12:44, hajimehoshi wrote: > Thank you! > > https://codereview.chromium.org/2448953002/diff/60001/content/browser/memory/memory_coordinator_impl.cc > File content/browser/memory/memory_coordinator_impl.cc (right): ...
4 years, 1 month ago (2016-10-26 07:15:08 UTC) #23
hajimehoshi
On 2016/10/26 07:15:08, haraken wrote: > On 2016/10/26 07:12:44, hajimehoshi wrote: > > Thank you! ...
4 years, 1 month ago (2016-10-26 07:34:36 UTC) #24
haraken
LGTM
4 years, 1 month ago (2016-10-26 07:35:31 UTC) #27
bashi
lgtm
4 years, 1 month ago (2016-10-26 07:36:27 UTC) #28
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/2448953002/100001
4 years, 1 month ago (2016-10-26 07:39:10 UTC) #32
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 1 month ago (2016-10-26 08:35:19 UTC) #34
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 08:39:10 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/41c89184c969af97c6b9ac9f262f051b5557fdfc
Cr-Commit-Position: refs/heads/master@{#427636}

Powered by Google App Engine
This is Rietveld 408576698