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

Unified Diff: mock_owner_key.h

Issue 6793055: [login_manager] Allow new owner keys to be pushed with StorePolicy (Closed) Base URL: http://git.chromium.org/git/login_manager.git@master
Patch Set: remove some debugging code Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Makefile ('k') | nss_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mock_owner_key.h
diff --git a/mock_owner_key.h b/mock_owner_key.h
index c6dcbb2ca02a4ba0c295ce5b36860767438edaf7..824da9cc549ae66014309f8020b44653ddb1fff3 100644
--- a/mock_owner_key.h
+++ b/mock_owner_key.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -19,14 +19,18 @@ class MockOwnerKey : public OwnerKey {
public:
MockOwnerKey() : OwnerKey(FilePath("")) {}
virtual ~MockOwnerKey() {}
+ MOCK_CONST_METHOD1(Equals, bool(const std::string&));
+ MOCK_CONST_METHOD1(VEquals, bool(const std::vector<uint8>&));
MOCK_METHOD0(HaveCheckedDisk, bool());
MOCK_METHOD0(IsPopulated, bool());
MOCK_METHOD0(PopulateFromDiskIfPossible, bool());
MOCK_METHOD1(PopulateFromBuffer, bool(const std::vector<uint8>&));
MOCK_METHOD1(PopulateFromKeypair, bool(base::RSAPrivateKey*));
MOCK_METHOD0(Persist, bool());
- MOCK_METHOD4(Verify, bool(const char*, uint32, const char*, uint32));
- MOCK_METHOD3(Sign, bool(const char*, uint32, std::vector<uint8>*));
+ MOCK_METHOD3(Rotate, bool(const std::vector<uint8>&, const uint8*, uint32));
+ MOCK_METHOD1(ClobberCompromisedKey, void(const std::vector<uint8>&));
+ MOCK_METHOD4(Verify, bool(const uint8*, uint32, const uint8*, uint32));
+ MOCK_METHOD3(Sign, bool(const uint8*, uint32, std::vector<uint8>*));
MOCK_METHOD1(StartGeneration, int(ChildJobInterface*));
};
} // namespace login_manager
« no previous file with comments | « Makefile ('k') | nss_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698