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

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

Issue 1693383003: ChromeOS cryptohome should be able to use gaia id as user identifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing files. Created 4 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
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/callback.h" 10 #include "base/callback.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void(const Identification& id, 44 void(const Identification& id,
45 const Authorization& auth, 45 const Authorization& auth,
46 const std::string& label, 46 const std::string& label,
47 const Callback& callback)); 47 const Callback& callback));
48 MOCK_METHOD5(UpdateKeyEx, 48 MOCK_METHOD5(UpdateKeyEx,
49 void(const Identification& id, 49 void(const Identification& id,
50 const Authorization& auth, 50 const Authorization& auth,
51 const KeyDefinition& key, 51 const KeyDefinition& key,
52 const std::string& signature, 52 const std::string& signature,
53 const Callback& callback)); 53 const Callback& callback));
54 MOCK_METHOD3(RenameCryptohome,
55 void(const Identification& id_from,
56 const Identification& id_to,
57 const Callback& callback));
54 58
55 private: 59 private:
56 bool success_; 60 bool success_;
57 MountError return_code_; 61 MountError return_code_;
58 62
59 void DoCallback(const Callback& callback); 63 void DoCallback(const Callback& callback);
60 void DoGetDataCallback(const GetKeyDataCallback& callback); 64 void DoGetDataCallback(const GetKeyDataCallback& callback);
61 void DoMountCallback(const MountCallback& callback); 65 void DoMountCallback(const MountCallback& callback);
62 66
63 DISALLOW_COPY_AND_ASSIGN(MockHomedirMethods); 67 DISALLOW_COPY_AND_ASSIGN(MockHomedirMethods);
64 }; 68 };
65 69
66 } // namespace cryptohome 70 } // namespace cryptohome
67 71
68 #endif // CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ 72 #endif // CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698