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

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

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Add missing ScopedAsyncTaskScheduler instance for the new unit tests; required by a recent change t… 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"
(...skipping 19 matching lines...) Expand all
30 30
31 enum : uint32_t { 31 enum : uint32_t {
32 kFuzzMessagePorts = 1 << 0, 32 kFuzzMessagePorts = 1 << 0,
33 kFuzzBlobInfo = 1 << 1, 33 kFuzzBlobInfo = 1 << 1,
34 }; 34 };
35 35
36 class WebMessagePortChannelImpl final : public WebMessagePortChannel { 36 class WebMessagePortChannelImpl final : public WebMessagePortChannel {
37 public: 37 public:
38 // WebMessagePortChannel 38 // WebMessagePortChannel
39 void setClient(WebMessagePortChannelClient* client) override {} 39 void setClient(WebMessagePortChannelClient* client) override {}
40 void destroy() override { delete this; } 40 void postMessage(const WebString&, WebMessagePortChannelArray) {
41 void postMessage(const WebString&, WebMessagePortChannelArray*) {
42 NOTIMPLEMENTED(); 41 NOTIMPLEMENTED();
43 } 42 }
44 bool tryGetMessage(WebString*, WebMessagePortChannelArray&) { return false; } 43 bool tryGetMessage(WebString*, WebMessagePortChannelArray&) { return false; }
45 }; 44 };
46 45
47 } // namespace 46 } // namespace
48 47
49 int LLVMFuzzerInitialize(int* argc, char*** argv) { 48 int LLVMFuzzerInitialize(int* argc, char*** argv) {
50 const char kExposeGC[] = "--expose_gc"; 49 const char kExposeGC[] = "--expose_gc";
51 v8::V8::SetFlagsFromString(kExposeGC, sizeof(kExposeGC)); 50 v8::V8::SetFlagsFromString(kExposeGC, sizeof(kExposeGC));
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 110
112 } // namespace blink 111 } // namespace blink
113 112
114 extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv) { 113 extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv) {
115 return blink::LLVMFuzzerInitialize(argc, argv); 114 return blink::LLVMFuzzerInitialize(argc, argv);
116 } 115 }
117 116
118 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { 117 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
119 return blink::LLVMFuzzerTestOneInput(data, size); 118 return blink::LLVMFuzzerTestOneInput(data, size);
120 } 119 }
OLDNEW
« no previous file with comments | « content/test/BUILD.gn ('k') | third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698