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

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

Issue 2818393002: cros: Mount the existing eCryptfs vault to start migration. (Closed)
Patch Set: Fix a comment. Created 3 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
« 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, 61 MOCK_METHOD2(MigrateToDircrypto,
62 void(const Identification& id, 62 void(const Identification& id,
63 const Authorization& auth,
64 const DBusResultCallback& callback)); 63 const DBusResultCallback& callback));
65 64
66 void set_mount_callback(const base::Closure& callback) { 65 void set_mount_callback(const base::Closure& callback) {
67 on_mount_called_ = callback; 66 on_mount_called_ = callback;
68 } 67 }
69 void set_add_key_callback(const base::Closure& callback) { 68 void set_add_key_callback(const base::Closure& callback) {
70 on_add_key_called_ = callback; 69 on_add_key_called_ = callback;
71 } 70 }
72 71
73 private: 72 private:
74 void DoCallback(const Callback& callback); 73 void DoCallback(const Callback& callback);
75 void DoGetDataCallback(const GetKeyDataCallback& callback); 74 void DoGetDataCallback(const GetKeyDataCallback& callback);
76 void DoMountCallback(const MountCallback& callback); 75 void DoMountCallback(const MountCallback& callback);
77 void DoAddKeyCallback(const Callback& callback); 76 void DoAddKeyCallback(const Callback& callback);
78 77
79 bool success_ = false; 78 bool success_ = false;
80 MountError return_code_ = MOUNT_ERROR_NONE; 79 MountError return_code_ = MOUNT_ERROR_NONE;
81 80
82 base::Closure on_mount_called_; 81 base::Closure on_mount_called_;
83 base::Closure on_add_key_called_; 82 base::Closure on_add_key_called_;
84 83
85 DISALLOW_COPY_AND_ASSIGN(MockHomedirMethods); 84 DISALLOW_COPY_AND_ASSIGN(MockHomedirMethods);
86 }; 85 };
87 86
88 } // namespace cryptohome 87 } // namespace cryptohome
89 88
90 #endif // CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ 89 #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