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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.h

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8BindingForTesting_h 5 #ifndef V8BindingForTesting_h
6 #define V8BindingForTesting_h 6 #define V8BindingForTesting_h
7 7
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "platform/bindings/ScriptState.h" 9 #include "platform/bindings/ScriptState.h"
10 #include "platform/wtf/Allocator.h" 10 #include "platform/wtf/Allocator.h"
11 #include "platform/wtf/Forward.h" 11 #include "platform/wtf/Forward.h"
12 #include "v8/include/v8.h" 12 #include "v8/include/v8.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class Document; 16 class Document;
17 class DOMWrapperWorld; 17 class DOMWrapperWorld;
18 class DummyPageHolder; 18 class DummyPageHolder;
19 class ExecutionContext; 19 class ExecutionContext;
20 class LocalFrame; 20 class LocalFrame;
21 class Page; 21 class Page;
22 22
23 class ScriptStateForTesting : public ScriptState { 23 class ScriptStateForTesting : public ScriptState {
24 public: 24 public:
25 static PassRefPtr<ScriptStateForTesting> Create(v8::Local<v8::Context>, 25 static PassRefPtr<ScriptStateForTesting> Create(v8::Local<v8::Context>,
26 PassRefPtr<DOMWrapperWorld>); 26 PassRefPtr<DOMWrapperWorld>);
27
27 private: 28 private:
28 ScriptStateForTesting(v8::Local<v8::Context>, PassRefPtr<DOMWrapperWorld>); 29 ScriptStateForTesting(v8::Local<v8::Context>, PassRefPtr<DOMWrapperWorld>);
29 }; 30 };
30 31
31 class V8TestingScope { 32 class V8TestingScope {
32 STACK_ALLOCATED(); 33 STACK_ALLOCATED();
33 34
34 public: 35 public:
35 V8TestingScope(); 36 V8TestingScope();
36 ScriptState* GetScriptState() const; 37 ScriptState* GetScriptState() const;
(...skipping 11 matching lines...) Expand all
48 v8::HandleScope handle_scope_; 49 v8::HandleScope handle_scope_;
49 v8::Local<v8::Context> context_; 50 v8::Local<v8::Context> context_;
50 v8::Context::Scope context_scope_; 51 v8::Context::Scope context_scope_;
51 v8::TryCatch try_catch_; 52 v8::TryCatch try_catch_;
52 DummyExceptionStateForTesting exception_state_; 53 DummyExceptionStateForTesting exception_state_;
53 }; 54 };
54 55
55 } // namespace blink 56 } // namespace blink
56 57
57 #endif // V8BindingForTesting_h 58 #endif // V8BindingForTesting_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698