Source code

Revision control

Other Tools

1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim:set ts=2 sw=2 sts=2 et cindent: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
* License, v. 2.0. If a copy of the MPL was not distributed with this
5
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#ifndef FuzzyLayer_h__
8
#define FuzzyLayer_h__
9
10
#include "prerror.h"
11
#include "nsError.h"
12
#include "nsIFile.h"
13
14
namespace mozilla {
15
namespace net {
16
17
nsresult AttachFuzzyIOLayer(PRFileDesc* fd);
18
19
extern Atomic<bool> gFuzzingConnClosed;
20
bool signalNetworkFuzzingDone();
21
22
void addNetworkFuzzingBuffer(const uint8_t* data, size_t size,
23
bool readFirst = false,
24
bool useIsOptional = false);
25
26
} // namespace net
27
} // namespace mozilla
28
29
#endif // FuzzyLayer_h__