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

Unified Diff: chromeos/cryptohome/mock_homedir_methods.h

Issue 2540683002: Don't defer quitting in ExecuteScript and other helpers that use DOMMessageQueue. (Closed)
Patch Set: Spin the loop in PRE_CreateAndCancelSupervisedUser. Created 4 years, 1 month 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
Index: chromeos/cryptohome/mock_homedir_methods.h
diff --git a/chromeos/cryptohome/mock_homedir_methods.h b/chromeos/cryptohome/mock_homedir_methods.h
index 693d3f46a2fed96db072e42fb24a68219ac8fa50..d7e864395486f3f1a9da203caaf7b6a5de066470 100644
--- a/chromeos/cryptohome/mock_homedir_methods.h
+++ b/chromeos/cryptohome/mock_homedir_methods.h
@@ -59,13 +59,24 @@ class CHROMEOS_EXPORT MockHomedirMethods : public HomedirMethods {
void(const Identification& id,
const GetAccountDiskUsageCallback& callback));
+ void set_mount_callback(base::Closure callback) {
+ on_mount_called_ = callback;
+ }
+ void set_add_key_callback(base::Closure callback) {
+ on_add_key_called_ = callback;
+ }
+
private:
- bool success_;
- MountError return_code_;
-
void DoCallback(const Callback& callback);
void DoGetDataCallback(const GetKeyDataCallback& callback);
void DoMountCallback(const MountCallback& callback);
+ void DoAddKeyCallback(const Callback& callback);
+
+ bool success_;
+ MountError return_code_;
+
+ base::Closure on_mount_called_;
+ base::Closure on_add_key_called_;
DISALLOW_COPY_AND_ASSIGN(MockHomedirMethods);
};

Powered by Google App Engine
This is Rietveld 408576698