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

Side by Side Diff: chromeos/cryptohome/mock_homedir_methods.h

Issue 224343003: Enable supervised users password sync/import on ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update tests Created 6 years, 8 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 | « chromeos/chromeos_switches.cc ('k') | chromeos/cryptohome/mock_homedir_methods.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ 5 #ifndef CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_
6 #define CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ 6 #define CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 18 matching lines...) Expand all
29 void(const Identification& id, 29 void(const Identification& id,
30 const Authorization& key, 30 const Authorization& key,
31 const MountParameters& request, 31 const MountParameters& request,
32 const MountCallback& callback)); 32 const MountCallback& callback));
33 MOCK_METHOD5(AddKeyEx, 33 MOCK_METHOD5(AddKeyEx,
34 void(const Identification& id, 34 void(const Identification& id,
35 const Authorization& auth, 35 const Authorization& auth,
36 const KeyDefinition& key, 36 const KeyDefinition& key,
37 bool clobber_if_exist, 37 bool clobber_if_exist,
38 const Callback& callback)); 38 const Callback& callback));
39 MOCK_METHOD4(RemoveKeyEx,
40 void(const Identification& id,
41 const Authorization& auth,
42 const std::string& label,
43 const Callback& callback));
39 MOCK_METHOD5(UpdateKeyEx, 44 MOCK_METHOD5(UpdateKeyEx,
40 void(const Identification& id, 45 void(const Identification& id,
41 const Authorization& auth, 46 const Authorization& auth,
42 const KeyDefinition& key, 47 const KeyDefinition& key,
43 const std::string& signature, 48 const std::string& signature,
44 const Callback& callback)); 49 const Callback& callback));
45 50
46 private: 51 private:
47 bool success_; 52 bool success_;
48 MountError return_code_; 53 MountError return_code_;
49 54
50 void DoCallback(const Callback& callback); 55 void DoCallback(const Callback& callback);
51 void DoMountCallback(const MountCallback& callback); 56 void DoMountCallback(const MountCallback& callback);
52 57
53 DISALLOW_COPY_AND_ASSIGN(MockHomedirMethods); 58 DISALLOW_COPY_AND_ASSIGN(MockHomedirMethods);
54 }; 59 };
55 60
56 } // namespace cryptohome 61 } // namespace cryptohome
57 62
58 #endif // CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ 63 #endif // CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_
OLDNEW
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | chromeos/cryptohome/mock_homedir_methods.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698