blob: 74d3779ebd2d4280a39c8e7b3ab792d3b1215745 [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.
#include "src/sys/fuzzing/framework/engine/process-proxy-test.h"
namespace fuzzing {
void ProcessProxyTest::SetUp() { pool_ = std::make_shared<ModulePool>(); }
ProcessProxySyncPtr ProcessProxyTest::Bind(ProcessProxyImpl* impl) {
ProcessProxySyncPtr proxy;
impl->Bind(proxy.NewRequest(), dispatcher_.get());
return proxy;
}
zx::eventpair ProcessProxyTest::IgnoreSentSignals() {
return coordinator_.Create([](zx_signals_t signals) { return true; });
}
zx::process ProcessProxyTest::IgnoreTarget() { return target_.Launch(); }
Options* ProcessProxyTest::IgnoreOptions() { return &ignored_; }
void IgnoreReceivedSignals() {}
void IgnoreErrors(ProcessProxyImpl* ignored) {}
} // namespace fuzzing