blob: 2d7d33e058f5b6c0cb2c13385241d99df078b74e [file] [log] [blame]
// Copyright 2014 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_AUTHORIZATION_DELEGATE_H_
#define TRUNKS_MOCK_AUTHORIZATION_DELEGATE_H_
#include <string>
#include <base/macros.h>
#include <gmock/gmock.h>
#include "trunks/authorization_delegate.h"
namespace trunks {
class MockAuthorizationDelegate : public AuthorizationDelegate {
public:
MockAuthorizationDelegate();
MockAuthorizationDelegate(const MockAuthorizationDelegate&) = delete;
MockAuthorizationDelegate& operator=(const MockAuthorizationDelegate&) =
delete;
~MockAuthorizationDelegate() override;
MOCK_METHOD4(GetCommandAuthorization,
bool(const std::string&, bool, bool, std::string*));
MOCK_METHOD2(CheckResponseAuthorization,
bool(const std::string&, const std::string&));
MOCK_METHOD1(EncryptCommandParameter, bool(std::string*));
MOCK_METHOD1(DecryptResponseParameter, bool(std::string*));
MOCK_METHOD1(GetTpmNonce, bool(std::string*));
};
} // namespace trunks
#endif // TRUNKS_MOCK_AUTHORIZATION_DELEGATE_H_