Commit da3d74d2 authored by sigbjornf@opera.com's avatar sigbjornf@opera.com

Fix Resource leak in ActivityLoggerTest unit tests.

Evict resources from the memory cache upon shutdown.

R=haraken
BUG=526423

Review URL: https://codereview.chromium.org/1309843011

git-svn-id: svn://svn.chromium.org/blink/trunk@201634 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent bdf70bf0
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "bindings/core/v8/ScriptSourceCode.h" #include "bindings/core/v8/ScriptSourceCode.h"
#include "bindings/core/v8/V8Binding.h" #include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8DOMActivityLogger.h" #include "bindings/core/v8/V8DOMActivityLogger.h"
#include "public/web/WebCache.h"
#include "web/WebLocalFrameImpl.h" #include "web/WebLocalFrameImpl.h"
#include "wtf/Forward.h" #include "wtf/Forward.h"
#include "wtf/text/Base64.h" #include "wtf/text/Base64.h"
...@@ -69,6 +70,11 @@ protected: ...@@ -69,6 +70,11 @@ protected:
FrameTestHelpers::loadFrame(m_webViewHelper.webViewImpl()->mainFrame(), "about:blank"); FrameTestHelpers::loadFrame(m_webViewHelper.webViewImpl()->mainFrame(), "about:blank");
} }
~ActivityLoggerTest()
{
WebCache::clear();
}
void executeScriptInMainWorld(const String& script) const void executeScriptInMainWorld(const String& script) const
{ {
v8::HandleScope scope(v8::Isolate::GetCurrent()); v8::HandleScope scope(v8::Isolate::GetCurrent());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment