blob: a0eb3587f18dd080a58b747e1745cee76aaac854 [file] [log] [blame]
// Copyright 2022 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 TRUNKS_MOCK_RESPONSE_SERIALIZER_H_
#define TRUNKS_MOCK_RESPONSE_SERIALIZER_H_
#include "trunks/response_serializer.h"
#include <string>
#include <gmock/gmock.h>
#include "trunks/tpm_generated.h"
namespace trunks {
class MockResponseSerializer : public ResponseSerializer {
public:
~MockResponseSerializer() override = default;
MOCK_METHOD(void,
SerializeHeaderOnlyResponse,
(TPM_RC, std::string*),
(override));
MOCK_METHOD(void,
SerializeResponseGetCapability,
(TPMI_YES_NO, const TPMS_CAPABILITY_DATA&, std::string*),
(override));
};
} // namespace trunks
#endif // TRUNKS_MOCK_RESPONSE_SERIALIZER_H_