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

Unified Diff: mock_platform.h

Issue 6729012: cryptohome: Add new platform functions (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cryptohome.git@master
Patch Set: . 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 | « no previous file | platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mock_platform.h
diff --git a/mock_platform.h b/mock_platform.h
index e8a9be36ac77ca07386a6fe052ba007eeca8c1b7..31ee45120ff4621591e39caef1f9bdf8f99fdfbf 100644
--- a/mock_platform.h
+++ b/mock_platform.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium 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.
@@ -36,8 +36,13 @@ class MockPlatform : public Platform {
MOCK_METHOD2(TerminatePidsWithOpenFiles, bool(const std::string&, bool));
MOCK_METHOD2(TerminatePidsForUser, bool(const uid_t, bool));
MOCK_METHOD3(SetOwnership, bool(const std::string&, uid_t, gid_t));
+ MOCK_METHOD3(SetOwnershipRecursive, bool(const std::string&, uid_t, gid_t));
MOCK_METHOD3(GetUserId, bool(const std::string&, uid_t*, gid_t*));
+ MOCK_METHOD3(GetGroupId, bool(const std::string&, gid_t*));
MOCK_CONST_METHOD1(AmountOfFreeDiskSpace, int64(const std::string&));
+ MOCK_METHOD2(Symlink, bool(const std::string&, const std::string&));
+ MOCK_METHOD4(Exec, bool(const std::string&, const std::vector<std::string>&,
+ uid_t, gid_t));
private:
bool MockGetUserId(const std::string& user, uid_t* user_id, gid_t* group_id) {
« no previous file with comments | « no previous file | platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698