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

Issue 1738463004: Improve test coveage of WebProcessMemoryDumpImplTest (Closed)

Created:
4 years, 10 months ago by hajimehoshi
Modified:
4 years, 9 months ago
CC:
chromium-reviews, blink-reviews, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve test coveage of WebProcessMemoryDumpImplTest Before this CL, we missed to implement createDiscardableMemoryAllocatorDump since methods including this were not called in a unittest, and caused pref bots breakage (see also crrev/1731893004). This CL adds calls of such functions and improves test coverage. BUG=548254 TEST=blink_platfrom_unittests --gtest_filter=WebProceesMemoryDumpImplTest.* Committed: https://crrev.com/10345bedb439af0d8c17b3c6548383ca0da6aa64 Cr-Commit-Position: refs/heads/master@{#378423}

Patch Set 1 #

Total comments: 2

Patch Set 2 : bashi's review #

Total comments: 2

Patch Set 3 : Address Primiano's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M third_party/WebKit/Source/platform/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/web_process_memory_dump_impl_test.cc View 1 2 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
hajimehoshi
primiano@: I just added minimum callers. Should I add checks for the return values? As ...
4 years, 10 months ago (2016-02-26 08:00:31 UTC) #2
bashi
Thanks for adding tests! I think we should wait for perf bots become green before ...
4 years, 10 months ago (2016-02-26 08:08:18 UTC) #3
haraken
LGTM with bashi-san's comment addressed.
4 years, 10 months ago (2016-02-26 08:42:50 UTC) #4
hajimehoshi
Thank you! I'd like to know primiano@'s opinion. https://codereview.chromium.org/1738463004/diff/1/third_party/WebKit/Source/platform/web_process_memory_dump_impl_test.cc File third_party/WebKit/Source/platform/web_process_memory_dump_impl_test.cc (right): https://codereview.chromium.org/1738463004/diff/1/third_party/WebKit/Source/platform/web_process_memory_dump_impl_test.cc#newcode133 third_party/WebKit/Source/platform/web_process_memory_dump_impl_test.cc:133: discardable_memory.get()); ...
4 years, 9 months ago (2016-02-29 07:00:47 UTC) #5
Primiano Tucci (use gerrit)
LGTM thanks https://codereview.chromium.org/1738463004/diff/20001/third_party/WebKit/Source/platform/web_process_memory_dump_impl_test.cc File third_party/WebKit/Source/platform/web_process_memory_dump_impl_test.cc (right): https://codereview.chromium.org/1738463004/diff/20001/third_party/WebKit/Source/platform/web_process_memory_dump_impl_test.cc#newcode126 third_party/WebKit/Source/platform/web_process_memory_dump_impl_test.cc:126: ASSERT_NE(nullptr, skia_trace_memory_dump); IIRC the ASSERT_NE incantation fails ...
4 years, 9 months ago (2016-02-29 16:15:29 UTC) #6
Primiano Tucci (use gerrit)
Ah, mind just typos in the CL title: s/covertage/coverage/ s/WebProceesMemoryDumpImplTest/WebProcess.../
4 years, 9 months ago (2016-02-29 16:16:24 UTC) #7
hajimehoshi
Thank you! https://codereview.chromium.org/1738463004/diff/20001/third_party/WebKit/Source/platform/web_process_memory_dump_impl_test.cc File third_party/WebKit/Source/platform/web_process_memory_dump_impl_test.cc (right): https://codereview.chromium.org/1738463004/diff/20001/third_party/WebKit/Source/platform/web_process_memory_dump_impl_test.cc#newcode126 third_party/WebKit/Source/platform/web_process_memory_dump_impl_test.cc:126: ASSERT_NE(nullptr, skia_trace_memory_dump); On 2016/02/29 16:15:28, Primiano (throttled ...
4 years, 9 months ago (2016-03-01 10:06:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1738463004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1738463004/40001
4 years, 9 months ago (2016-03-01 10:06:37 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-01 11:07:55 UTC) #16
commit-bot: I haz the power
4 years, 9 months ago (2016-03-01 11:08:59 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/10345bedb439af0d8c17b3c6548383ca0da6aa64
Cr-Commit-Position: refs/heads/master@{#378423}

Powered by Google App Engine
This is Rietveld 408576698