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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValueFuzzer.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "bindings/core/v8/SerializedScriptValue.h" 5 #include "bindings/core/v8/SerializedScriptValue.h"
6 6
7 #include "bindings/core/v8/ScriptState.h" 7 #include "bindings/core/v8/ScriptState.h"
8 #include "bindings/core/v8/V8PerIsolateData.h" 8 #include "bindings/core/v8/V8PerIsolateData.h"
9 #include "core/dom/MessagePort.h" 9 #include "core/dom/MessagePort.h"
10 #include "core/frame/Settings.h" 10 #include "core/frame/Settings.h"
11 #include "core/testing/DummyPageHolder.h" 11 #include "core/testing/DummyPageHolder.h"
12 #include "platform/testing/BlinkFuzzerTestSupport.h" 12 #include "platform/testing/BlinkFuzzerTestSupport.h"
13 #include "public/platform/WebBlobInfo.h" 13 #include "public/platform/WebBlobInfo.h"
14 #include "public/platform/WebMessagePortChannel.h" 14 #include "public/platform/WebMessagePortChannel.h"
15 #include "wtf/StringHasher.h" 15 #include "wtf/StringHasher.h"
16 16
17 #include <v8.h>
17 #include <algorithm> 18 #include <algorithm>
18 #include <cstddef> 19 #include <cstddef>
19 #include <cstdint> 20 #include <cstdint>
20 #include <v8.h>
21 21
22 namespace blink { 22 namespace blink {
23 23
24 namespace { 24 namespace {
25 25
26 // Intentionally leaked during fuzzing. 26 // Intentionally leaked during fuzzing.
27 // See testing/libfuzzer/efficient_fuzzer.md. 27 // See testing/libfuzzer/efficient_fuzzer.md.
28 DummyPageHolder* pageHolder = nullptr; 28 DummyPageHolder* pageHolder = nullptr;
29 WebBlobInfoArray* blobInfoArray = nullptr; 29 WebBlobInfoArray* blobInfoArray = nullptr;
30 30
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 } // namespace blink 111 } // namespace blink
112 112
113 extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv) { 113 extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv) {
114 return blink::LLVMFuzzerInitialize(argc, argv); 114 return blink::LLVMFuzzerInitialize(argc, argv);
115 } 115 }
116 116
117 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { 117 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
118 return blink::LLVMFuzzerTestOneInput(data, size); 118 return blink::LLVMFuzzerTestOneInput(data, size);
119 } 119 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698