Index: webrtc/test/fuzzers/pseudotcp_parser_fuzzer.cc |
diff --git a/webrtc/test/fuzzers/pseudotcp_parser_fuzzer.cc b/webrtc/test/fuzzers/pseudotcp_parser_fuzzer.cc |
index f373e6cf9f1a1e31d86557ad987fe9fa3d48ba8d..fc30b96103bf22fb6b0145d0ea2ecd15383f7614 100644 |
--- a/webrtc/test/fuzzers/pseudotcp_parser_fuzzer.cc |
+++ b/webrtc/test/fuzzers/pseudotcp_parser_fuzzer.cc |
@@ -11,6 +11,7 @@ |
#include <stddef.h> |
#include <stdint.h> |
+#include "webrtc/base/thread.h" |
#include "webrtc/p2p/base/pseudotcp.h" |
namespace webrtc { |
@@ -29,10 +30,12 @@ class FakeIPseudoTcpNotify : public cricket::IPseudoTcpNotify { |
}; |
struct Environment { |
- cricket::PseudoTcp* ptcp; |
- explicit Environment(cricket::IPseudoTcpNotify* notifier) { |
- ptcp = new cricket::PseudoTcp(notifier, 0); |
+ explicit Environment(cricket::IPseudoTcpNotify* notifier): |
+ ptcp(new cricket::PseudoTcp(notifier, 0)) { |
} |
+ |
+ cricket::PseudoTcp* ptcp; |
pbos-webrtc
2016/09/28 16:01:41
* const ptcp;
phoglund
2016/09/29 11:05:59
Done.
|
+ rtc::AutoThread thread; |
pbos-webrtc
2016/09/28 16:01:41
Please put a comment on why the thread is necessar
phoglund
2016/09/29 11:05:59
Done.
|
}; |
Environment* env = new Environment(new FakeIPseudoTcpNotify()); |