| // Copyright 2019 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/product_info_provider.h" |
| |
| #include <lib/syslog/cpp/macros.h> |
| |
| namespace forensics { |
| namespace stubs { |
| |
| void ProductInfoProvider::GetInfo(GetInfoCallback callback) { |
| FX_CHECK(!has_been_called_) << "GetInfo() can only be called once"; |
| has_been_called_ = true; |
| callback(std::move(info_)); |
| } |
| |
| } // namespace stubs |
| } // namespace forensics |