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

Issue 1013413002: [bindings] Refactor ScriptStateForTesting, V8TestingScope into V8BindingForTesting.h/cpp (Closed)

Created:
5 years, 9 months ago by vivekg_samsung
Modified:
5 years, 3 months ago
Reviewers:
haraken, vivekg, Nico, yhirano
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, vivekg_samsung
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[bindings] Refactor ScriptStateForTesting, V8TestingScope into V8BindingForTesting.h/cpp R=haraken@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192081

Patch Set 1 #

Patch Set 2 : Combined all testing files into one! #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -120 lines) Patch
M Source/bindings/core/v8/ScriptPromisePropertyTest.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/core/v8/ScriptPromiseTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/core/v8/ScriptState.h View 1 chunk +0 lines, -13 lines 0 comments Download
M Source/bindings/core/v8/ScriptState.cpp View 1 chunk +0 lines, -24 lines 0 comments Download
M Source/bindings/core/v8/ScriptStreamerTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/core/v8/SerializedScriptValueTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/core/v8/ToV8Test.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
A Source/bindings/core/v8/V8BindingForTesting.h View 1 1 chunk +41 lines, -0 lines 0 comments Download
A + Source/bindings/core/v8/V8BindingForTesting.cpp View 1 1 chunk +25 lines, -1 line 2 comments Download
M Source/bindings/core/v8/V8BindingTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/core/v8/V8ScriptRunnerTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/core/v8/V8TestingScope.h View 1 1 chunk +0 lines, -29 lines 0 comments Download
D Source/bindings/core/v8/V8TestingScope.cpp View 1 1 chunk +0 lines, -35 lines 0 comments Download
M Source/bindings/core/v8/v8.gypi View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/modules/v8/V8BindingForModulesTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/animation/AnimationTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/animation/EffectInputTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/animation/TimingInputTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/testing/PrivateScriptTestTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/indexeddb/IDBRequestTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/indexeddb/IDBTransactionTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/websockets/DOMWebSocketTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/CustomEventTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/PageSerializerTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (6 generated)
vivekg
Trivial change, PTAL.
5 years, 9 months ago (2015-03-18 04:37:10 UTC) #2
haraken
What's the benefit of this change? Although there is no Blink-wide policy, I'm not really ...
5 years, 9 months ago (2015-03-18 08:05:45 UTC) #3
vivekg
On 2015/03/18 08:05:45, haraken wrote: > What's the benefit of this change? Although there is ...
5 years, 9 months ago (2015-03-18 08:44:56 UTC) #4
haraken
On 2015/03/18 08:44:56, vivekg_ wrote: > On 2015/03/18 08:05:45, haraken wrote: > > What's the ...
5 years, 9 months ago (2015-03-18 08:58:33 UTC) #5
vivekg
On 2015/03/18 at 08:58:33, haraken wrote: > On 2015/03/18 08:44:56, vivekg_ wrote: > > On ...
5 years, 9 months ago (2015-03-18 10:38:07 UTC) #8
haraken
LGTM
5 years, 9 months ago (2015-03-18 10:46:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1013413002/60001
5 years, 9 months ago (2015-03-18 10:47:21 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=192081
5 years, 9 months ago (2015-03-18 12:23:18 UTC) #12
Nico
https://codereview.chromium.org/1013413002/diff/60001/Source/bindings/core/v8/V8BindingForTesting.cpp File Source/bindings/core/v8/V8BindingForTesting.cpp (right): https://codereview.chromium.org/1013413002/diff/60001/Source/bindings/core/v8/V8BindingForTesting.cpp#newcode16 Source/bindings/core/v8/V8BindingForTesting.cpp:16: // This is deref()ed in the weak callback of ...
5 years, 3 months ago (2015-08-29 21:42:48 UTC) #14
haraken
https://codereview.chromium.org/1013413002/diff/60001/Source/bindings/core/v8/V8BindingForTesting.cpp File Source/bindings/core/v8/V8BindingForTesting.cpp (right): https://codereview.chromium.org/1013413002/diff/60001/Source/bindings/core/v8/V8BindingForTesting.cpp#newcode16 Source/bindings/core/v8/V8BindingForTesting.cpp:16: // This is deref()ed in the weak callback of ...
5 years, 3 months ago (2015-08-30 01:26:07 UTC) #16
yhirano
5 years, 3 months ago (2015-08-31 04:34:46 UTC) #17
Message was sent while issue was closed.
On 2015/08/30 01:26:07, haraken wrote:
>
https://codereview.chromium.org/1013413002/diff/60001/Source/bindings/core/v8...
> File Source/bindings/core/v8/V8BindingForTesting.cpp (right):
> 
>
https://codereview.chromium.org/1013413002/diff/60001/Source/bindings/core/v8...
> Source/bindings/core/v8/V8BindingForTesting.cpp:16: // This is deref()ed in
the
> weak callback of the v8::Context.
> On 2015/08/29 21:42:48, Nico wrote:
> > This seems to not work, see
> >
>
http://build.chromium.org/p/chromium.fyi/builders/ClangToTLinuxASan%20tester/...
> > :
> > 
> > Direct leak of 72 byte(s) in 1 object(s) allocated from:
> >     #0 0x58e708 in __interceptor_malloc
> >
>
/b/build/slave/ClangToTLinuxASan/build/src/third_party/llvm/compiler-rt/lib/asan/asan_malloc_linux.cc:40
> >     #1 0x1d8f580 in partitionAllocGenericFlags
> > third_party/WebKit/Source/wtf/PartitionAlloc.h:691:20
> >     #2 0x1d8f580 in partitionAllocGeneric
> > third_party/WebKit/Source/wtf/PartitionAlloc.h:707
> >     #3 0x1d8f580 in WTF::fastMalloc(unsigned long)
> > third_party/WebKit/Source/wtf/FastMalloc.cpp:56
> >     #4 0x648bf4 in operator new
> third_party/WebKit/Source/wtf/RefCounted.h:166:5
> >     #5 0x648bf4 in
> blink::ScriptStateForTesting::create(v8::Local<v8::Context>,
> > WTF::PassRefPtr<blink::DOMWrapperWorld>)
> > third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp:14
> >     #6 0x5b58a1 in (anonymous
> > namespace)::ScriptPromisePropertyTestBase::ScriptPromisePropertyTestBase()
> >
>
third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp:129:30
> >     #7 0x5d433b in (anonymous
> >
>
namespace)::ScriptPromisePropertyRefCountedTest::ScriptPromisePropertyRefCountedTest()
> >
third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp:433:5
> >     #8 0x5d424a in ScriptPromisePropertyRefCountedTest_Resolve_Test
> >
third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp:445:1
> > 
> > 
> > Can you take a look?
> 
> I think this is an issue of ScriptPromisePropertyTest.
> 
> yhirano@?

Thanks, filed a bug: https://code.google.com/p/chromium/issues/detail?id=526608

Powered by Google App Engine
This is Rietveld 408576698