-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmock_authorization_delegate.h
36 lines (26 loc) · 1.09 KB
/
mock_authorization_delegate.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2014 The ChromiumOS Authors
// 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 <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_