blob: 127a126520e9dca2f20d534ef1f54566678850f6 [file] [log] [blame]
// Copyright 2020 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/developer/forensics/testing/stubs/inspect_archive.h"
namespace forensics {
namespace stubs {
void InspectArchive::StreamDiagnostics(
fuchsia::diagnostics::StreamParameters stream_parameters,
::fidl::InterfaceRequest<fuchsia::diagnostics::BatchIterator> request) {
batch_iterator_binding_ = std::make_unique<::fidl::Binding<fuchsia::diagnostics::BatchIterator>>(
batch_iterator_.get(), std::move(request));
}
void InspectArchiveClosesIteratorConnection::StreamDiagnostics(
fuchsia::diagnostics::StreamParameters stream_parameters,
::fidl::InterfaceRequest<fuchsia::diagnostics::BatchIterator> request) {
request.Close(ZX_ERR_PEER_CLOSED);
}
} // namespace stubs
} // namespace forensics