Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: chromeos/dbus/mock_cryptohome_client.h

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ 6 #define CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 11
10 #include "chromeos/dbus/cryptohome/rpc.pb.h" 12 #include "chromeos/dbus/cryptohome/rpc.pb.h"
11 #include "chromeos/dbus/cryptohome_client.h" 13 #include "chromeos/dbus/cryptohome_client.h"
12 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
13 15
14 namespace chromeos { 16 namespace chromeos {
15 17
16 class MockCryptohomeClient : public CryptohomeClient { 18 class MockCryptohomeClient : public CryptohomeClient {
17 public: 19 public:
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 MOCK_METHOD0(CallTpmClearStoredPasswordAndBlock, bool()); 74 MOCK_METHOD0(CallTpmClearStoredPasswordAndBlock, bool());
73 MOCK_METHOD1(Pkcs11IsTpmTokenReady, 75 MOCK_METHOD1(Pkcs11IsTpmTokenReady,
74 void(const BoolDBusMethodCallback& callback)); 76 void(const BoolDBusMethodCallback& callback));
75 MOCK_METHOD1(Pkcs11GetTpmTokenInfo, 77 MOCK_METHOD1(Pkcs11GetTpmTokenInfo,
76 void(const Pkcs11GetTpmTokenInfoCallback& callback)); 78 void(const Pkcs11GetTpmTokenInfoCallback& callback));
77 MOCK_METHOD2(Pkcs11GetTpmTokenInfoForUser, 79 MOCK_METHOD2(Pkcs11GetTpmTokenInfoForUser,
78 void(const std::string& username, 80 void(const std::string& username,
79 const Pkcs11GetTpmTokenInfoCallback& callback)); 81 const Pkcs11GetTpmTokenInfoCallback& callback));
80 MOCK_METHOD3(InstallAttributesGet, 82 MOCK_METHOD3(InstallAttributesGet,
81 bool(const std::string& name, 83 bool(const std::string& name,
82 std::vector<uint8>* value, 84 std::vector<uint8_t>* value,
83 bool* successful)); 85 bool* successful));
84 MOCK_METHOD3(InstallAttributesSet, 86 MOCK_METHOD3(InstallAttributesSet,
85 bool(const std::string& name, 87 bool(const std::string& name,
86 const std::vector<uint8>& value, 88 const std::vector<uint8_t>& value,
87 bool* successful)); 89 bool* successful));
88 MOCK_METHOD1(InstallAttributesFinalize, bool(bool* successful)); 90 MOCK_METHOD1(InstallAttributesFinalize, bool(bool* successful));
89 MOCK_METHOD1(InstallAttributesIsReady, 91 MOCK_METHOD1(InstallAttributesIsReady,
90 void(const BoolDBusMethodCallback& callback)); 92 void(const BoolDBusMethodCallback& callback));
91 MOCK_METHOD1(InstallAttributesIsInvalid, bool(bool* is_invalid)); 93 MOCK_METHOD1(InstallAttributesIsInvalid, bool(bool* is_invalid));
92 MOCK_METHOD1(InstallAttributesIsFirstInstall, bool(bool* is_first_install)); 94 MOCK_METHOD1(InstallAttributesIsFirstInstall, bool(bool* is_first_install));
93 MOCK_METHOD1(TpmAttestationIsPrepared, 95 MOCK_METHOD1(TpmAttestationIsPrepared,
94 void(const BoolDBusMethodCallback& callback)); 96 void(const BoolDBusMethodCallback& callback));
95 MOCK_METHOD1(TpmAttestationIsEnrolled, 97 MOCK_METHOD1(TpmAttestationIsEnrolled,
96 void(const BoolDBusMethodCallback& callback)); 98 void(const BoolDBusMethodCallback& callback));
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 const ProtobufMethodCallback& callback)); 205 const ProtobufMethodCallback& callback));
204 MOCK_METHOD2( 206 MOCK_METHOD2(
205 FlushAndSignBootAttributes, 207 FlushAndSignBootAttributes,
206 void(const cryptohome::FlushAndSignBootAttributesRequest& request, 208 void(const cryptohome::FlushAndSignBootAttributesRequest& request,
207 const ProtobufMethodCallback& callback)); 209 const ProtobufMethodCallback& callback));
208 }; 210 };
209 211
210 } // namespace chromeos 212 } // namespace chromeos
211 213
212 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ 214 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/lorgnette_manager_client.cc ('k') | chromeos/dbus/mock_permission_broker_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698