blob: 56e69e3c6f217d3d9bf6f0b06ae66bd245fce456 [file] [log] [blame]
// Copyright 2018 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 "peridot/bin/sessionmgr/story/model/testing/test_mutator.h"
namespace modular {
fit::consumer<> TestMutator::ExecuteInternal(
std::vector<fuchsia::modular::storymodel::StoryModelMutation> commands) {
fit::bridge<> bridge;
ExecuteCall call{.completer = std::move(bridge.completer),
.commands = std::move(commands)};
execute_calls.push_back(std::move(call));
return std::move(bridge.consumer);
}
} // namespace modular