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

Side by Side Diff: mock_owner_key.h

Issue 6469072: [login_manager] Use keygen helper to generate owner key (Closed) Base URL: http://git.chromium.org/git/login_manager.git@master
Patch Set: Add a few constants Created 9 years, 10 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | nss_util.h » ('j') | session_manager_service.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS 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 LOGIN_MANAGER_MOCK_OWNER_KEY_H_ 5 #ifndef LOGIN_MANAGER_MOCK_OWNER_KEY_H_
6 #define LOGIN_MANAGER_MOCK_OWNER_KEY_H_ 6 #define LOGIN_MANAGER_MOCK_OWNER_KEY_H_
7 7
8 #include "login_manager/owner_key.h" 8 #include "login_manager/owner_key.h"
9 9
10 #include <unistd.h> 10 #include <unistd.h>
11 #include <gmock/gmock.h> 11 #include <gmock/gmock.h>
12 12
13 namespace base { 13 namespace base {
14 class RSAPrivateKey; 14 class RSAPrivateKey;
15 } 15 }
16 16
17 namespace login_manager { 17 namespace login_manager {
18 class MockOwnerKey : public OwnerKey { 18 class MockOwnerKey : public OwnerKey {
19 public: 19 public:
20 MockOwnerKey() : OwnerKey(FilePath("")) {} 20 MockOwnerKey() : OwnerKey(FilePath("")) {}
21 virtual ~MockOwnerKey() {} 21 virtual ~MockOwnerKey() {}
22 MOCK_METHOD0(HaveCheckedDisk, bool()); 22 MOCK_METHOD0(HaveCheckedDisk, bool());
23 MOCK_METHOD0(IsPopulated, bool()); 23 MOCK_METHOD0(IsPopulated, bool());
24 MOCK_METHOD0(PopulateFromDiskIfPossible, bool()); 24 MOCK_METHOD0(PopulateFromDiskIfPossible, bool());
25 MOCK_METHOD1(PopulateFromBuffer, bool(const std::vector<uint8>&)); 25 MOCK_METHOD1(PopulateFromBuffer, bool(const std::vector<uint8>&));
26 MOCK_METHOD1(PopulateFromKeypair, bool(base::RSAPrivateKey*)); 26 MOCK_METHOD1(PopulateFromKeypair, bool(base::RSAPrivateKey*));
27 MOCK_METHOD0(Persist, bool()); 27 MOCK_METHOD0(Persist, bool());
28 MOCK_METHOD4(Verify, bool(const char*, uint32, const char*, uint32)); 28 MOCK_METHOD4(Verify, bool(const char*, uint32, const char*, uint32));
29 MOCK_METHOD3(Sign, bool(const char*, uint32, std::vector<uint8>*)); 29 MOCK_METHOD3(Sign, bool(const char*, uint32, std::vector<uint8>*));
30 MOCK_METHOD1(StartGeneration, int(ChildJobInterface*));
30 }; 31 };
31 } // namespace login_manager 32 } // namespace login_manager
32 33
33 #endif // LOGIN_MANAGER_MOCK_OWNER_KEY_H_ 34 #endif // LOGIN_MANAGER_MOCK_OWNER_KEY_H_
OLDNEW
« no previous file with comments | « no previous file | nss_util.h » ('j') | session_manager_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698