mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Update plugin btests for namespace changes
This commit is contained in:
parent
70c2397f69
commit
874e170341
43 changed files with 420 additions and 317 deletions
|
@ -4,28 +4,29 @@
|
|||
#include "input/ReaderBackend.h"
|
||||
#include "threading/formatters/Ascii.h"
|
||||
|
||||
namespace input { namespace reader {
|
||||
namespace btest::input::reader {
|
||||
|
||||
/**
|
||||
* A Foo reader to measure performance of the input framework.
|
||||
*/
|
||||
class Foo : public ReaderBackend {
|
||||
class Foo : public zeek::input::ReaderBackend {
|
||||
public:
|
||||
Foo(ReaderFrontend* frontend);
|
||||
Foo(zeek::input::ReaderFrontend* frontend);
|
||||
~Foo();
|
||||
|
||||
static ReaderBackend* Instantiate(ReaderFrontend* frontend) { return new Foo(frontend); }
|
||||
static zeek::input::ReaderBackend* Instantiate(zeek::input::ReaderFrontend* frontend) { return new Foo(frontend); }
|
||||
|
||||
protected:
|
||||
virtual bool DoInit(const ReaderInfo& info, int arg_num_fields, const threading::Field* const* fields);
|
||||
virtual bool DoInit(const zeek::input::ReaderBackend::ReaderInfo& info, int arg_num_fields,
|
||||
const zeek::threading::Field* const* fields);
|
||||
virtual void DoClose();
|
||||
virtual bool DoUpdate();
|
||||
virtual bool DoHeartbeat(double network_time, double current_time);
|
||||
|
||||
private:
|
||||
std::string RandomString(const int len);
|
||||
threading::Value* EntryToVal(zeek::TypeTag Type, zeek::TypeTag subtype);
|
||||
threading::formatter::Ascii* ascii;
|
||||
zeek::threading::Value* EntryToVal(zeek::TypeTag Type, zeek::TypeTag subtype);
|
||||
zeek::threading::formatter::Ascii* ascii;
|
||||
};
|
||||
|
||||
} }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue