diff options
author | haraken <haraken@chromium.org> | 2016-01-25 17:38:49 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-26 01:40:02 +0000 |
commit | 6ae6611de742bb291305a1df558e710213556fa4 (patch) | |
tree | 31488915c2ea766a469a1379456c24740c45a15e /extensions/renderer | |
parent | 5ce054ac14a938828c38662d0229a4e103bcf9c3 (diff) | |
download | chromium_src-6ae6611de742bb291305a1df558e710213556fa4.zip chromium_src-6ae6611de742bb291305a1df558e710213556fa4.tar.gz chromium_src-6ae6611de742bb291305a1df558e710213556fa4.tar.bz2 |
Fix leaks in exensions_unittests after enabling Oilpan
This CL adds an Oilpan's GC before tearing down the extensions_unittests.
BUG=581092
Review URL: https://codereview.chromium.org/1632763003
Cr-Commit-Position: refs/heads/master@{#371408}
Diffstat (limited to 'extensions/renderer')
-rw-r--r-- | extensions/renderer/module_system_test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/renderer/module_system_test.cc b/extensions/renderer/module_system_test.cc index 68c4bd1..50de79f 100644 --- a/extensions/renderer/module_system_test.cc +++ b/extensions/renderer/module_system_test.cc @@ -22,6 +22,7 @@ #include "extensions/renderer/object_backed_native_handler.h" #include "extensions/renderer/safe_builtins.h" #include "extensions/renderer/utils_native_handler.h" +#include "third_party/WebKit/public/web/WebHeap.h" #include "ui/base/resource/resource_bundle.h" namespace extensions { @@ -240,6 +241,7 @@ void ModuleSystemTest::TearDown() { old_heap_size = stats.used_heap_size(); isolate_->RequestGarbageCollectionForTesting( v8::Isolate::kFullGarbageCollection); + blink::WebHeap::collectAllGarbageForTesting(); isolate_->GetHeapStatistics(&stats); } } |