diff options
author | haruki@chromium.org <haruki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-10 06:22:12 +0000 |
---|---|---|
committer | haruki@chromium.org <haruki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-10 06:22:12 +0000 |
commit | f40c382b4a8c012251ae017ee1fc30b380851dea (patch) | |
tree | 9e7c642255b5dd3ee4c8411ff3466148cf3f12ca /chromeos/dbus/fake_cryptohome_client.h | |
parent | 8fc627dc359f47bbda3cdb49b4a882f81b940166 (diff) | |
download | chromium_src-f40c382b4a8c012251ae017ee1fc30b380851dea.zip chromium_src-f40c382b4a8c012251ae017ee1fc30b380851dea.tar.gz chromium_src-f40c382b4a8c012251ae017ee1fc30b380851dea.tar.bz2 |
Use MockDBusThreadManagerWithoutGMock for ParallelAuthenticatorTest
Adding set_unmount_result() to FakeCryptohomeClient.
BUG=223061
TEST=unittests
R=satorux@chromium.org
Review URL: https://codereview.chromium.org/15045003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199403 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/fake_cryptohome_client.h')
-rw-r--r-- | chromeos/dbus/fake_cryptohome_client.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chromeos/dbus/fake_cryptohome_client.h b/chromeos/dbus/fake_cryptohome_client.h index fd05882..1fed647 100644 --- a/chromeos/dbus/fake_cryptohome_client.h +++ b/chromeos/dbus/fake_cryptohome_client.h @@ -128,7 +128,14 @@ class FakeCryptohomeClient : public CryptohomeClient { const std::string& payload, const BoolDBusMethodCallback& callback) OVERRIDE; + // Sets the unmount result of Unmount() call. Unmount() always sets the result + // and pretends that the underlying method call succeeds. + void set_unmount_result(bool result) { + unmount_result_= result; + } + private: + bool unmount_result_; DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient); }; |