blob: 3bf1696938e4f6e6df346c232ecf398f02665454 [file] [log] [blame]
// Copyright 2019 The Chromium OS 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 DIAGNOSTICS_WILCO_DTC_SUPPORTD_FAKE_WILCO_DTC_SUPPORTD_ROUTINE_FACTORY_H_
#define DIAGNOSTICS_WILCO_DTC_SUPPORTD_FAKE_WILCO_DTC_SUPPORTD_ROUTINE_FACTORY_H_
#include <memory>
#include <base/macros.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "diagnostics/routines/diag_routine.h"
#include "diagnostics/wilco_dtc_supportd/wilco_dtc_supportd_routine_factory.h"
#include "wilco_dtc_supportd.pb.h" // NOLINT(build/include)
namespace diagnostics {
// Implementation of WilcoDtcSupportdRoutineFactory that should only be used for
// testing.
class FakeWilcoDtcSupportdRoutineFactory final
: public WilcoDtcSupportdRoutineFactory {
public:
FakeWilcoDtcSupportdRoutineFactory();
// WilcoDtcSupportdRoutineFactory overrides:
~FakeWilcoDtcSupportdRoutineFactory() override;
std::unique_ptr<DiagnosticRoutine> CreateRoutine(
const grpc_api::RunRoutineRequest& request) override;
private:
DISALLOW_COPY_AND_ASSIGN(FakeWilcoDtcSupportdRoutineFactory);
};
} // namespace diagnostics
#endif // DIAGNOSTICS_WILCO_DTC_SUPPORTD_FAKE_WILCO_DTC_SUPPORTD_ROUTINE_FACTORY_H_