blob: 554064749e2f8e705eb612fce094b41347ff0626 [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_DEVELOPER_DEBUG_DEBUG_AGENT_MOCK_COMPONENT_MANAGER_H_
#define SRC_DEVELOPER_DEBUG_DEBUG_AGENT_MOCK_COMPONENT_MANAGER_H_
#include "src/developer/debug/debug_agent/component_manager.h"
namespace debug_agent {
class MockComponentManager : public ComponentManager {
public:
MockComponentManager() = default;
~MockComponentManager() override = default;
// ComponentManager implementation.
std::optional<ComponentInfo> FindComponentInfo(zx_koid_t job_koid) const override;
debug::Status LaunchComponent(DebuggedJob* root_job, const std::vector<std::string>& argv,
uint64_t* component_id) override;
uint64_t OnProcessStart(const std::string& filter, StdioHandles& out_stdio) override;
};
} // namespace debug_agent
#endif // SRC_DEVELOPER_DEBUG_DEBUG_AGENT_MOCK_COMPONENT_MANAGER_H_