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

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

Issue 2748743004: cryptohome: Add dbus method and signal name for encryption migration. (Closed)
Patch Set: Roll DEPS Created 3 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 unified diff | Download patch
« no previous file with comments | « chromeos/cryptohome/homedir_methods.cc ('k') | chromeos/dbus/cryptohome_client.h » ('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/callback.h" 10 #include "base/callback.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 54 MOCK_METHOD3(RenameCryptohome,
55 void(const Identification& id_from, 55 void(const Identification& id_from,
56 const Identification& id_to, 56 const Identification& id_to,
57 const Callback& callback)); 57 const Callback& callback));
58 MOCK_METHOD2(GetAccountDiskUsage, 58 MOCK_METHOD2(GetAccountDiskUsage,
59 void(const Identification& id, 59 void(const Identification& id,
60 const GetAccountDiskUsageCallback& callback)); 60 const GetAccountDiskUsageCallback& callback));
61 MOCK_METHOD3(MigrateToDircrypto,
62 void(const Identification& id,
63 const Authorization& auth,
64 const DBusResultCallback& callback));
61 65
62 void set_mount_callback(const base::Closure& callback) { 66 void set_mount_callback(const base::Closure& callback) {
63 on_mount_called_ = callback; 67 on_mount_called_ = callback;
64 } 68 }
65 void set_add_key_callback(const base::Closure& callback) { 69 void set_add_key_callback(const base::Closure& callback) {
66 on_add_key_called_ = callback; 70 on_add_key_called_ = callback;
67 } 71 }
68 72
69 private: 73 private:
70 void DoCallback(const Callback& callback); 74 void DoCallback(const Callback& callback);
71 void DoGetDataCallback(const GetKeyDataCallback& callback); 75 void DoGetDataCallback(const GetKeyDataCallback& callback);
72 void DoMountCallback(const MountCallback& callback); 76 void DoMountCallback(const MountCallback& callback);
73 void DoAddKeyCallback(const Callback& callback); 77 void DoAddKeyCallback(const Callback& callback);
74 78
75 bool success_ = false; 79 bool success_ = false;
76 MountError return_code_ = MOUNT_ERROR_NONE; 80 MountError return_code_ = MOUNT_ERROR_NONE;
77 81
78 base::Closure on_mount_called_; 82 base::Closure on_mount_called_;
79 base::Closure on_add_key_called_; 83 base::Closure on_add_key_called_;
80 84
81 DISALLOW_COPY_AND_ASSIGN(MockHomedirMethods); 85 DISALLOW_COPY_AND_ASSIGN(MockHomedirMethods);
82 }; 86 };
83 87
84 } // namespace cryptohome 88 } // namespace cryptohome
85 89
86 #endif // CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ 90 #endif // CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_
OLDNEW
« no previous file with comments | « chromeos/cryptohome/homedir_methods.cc ('k') | chromeos/dbus/cryptohome_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698