blob: f3382cc28cfab7dbb509376fe2b985c21bcec3a6 [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_SYS_TEST_MANAGER_DEBUG_DATA_PROCESSOR_ABSTRACT_DATA_PROCESSOR_H_
#define SRC_SYS_TEST_MANAGER_DEBUG_DATA_PROCESSOR_ABSTRACT_DATA_PROCESSOR_H_
#include <lib/zx/event.h>
#include <string>
#include "common.h"
const uint32_t IDLE_SIGNAL = ZX_USER_SIGNAL_0;
class AbstractDataProcessor {
public:
virtual ~AbstractDataProcessor() = default;
virtual void ProcessData(std::string test_url, DataSinkDump data_sink) = 0;
/// Returns a handle to an event on which `IDLE_SIGNAL` is signalled when
/// all data passed through ProcessData has been processed.
virtual zx::unowned_event GetIdleEvent() = 0;
};
#endif // SRC_SYS_TEST_MANAGER_DEBUG_DATA_PROCESSOR_ABSTRACT_DATA_PROCESSOR_H_