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.cc | |
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.cc')
-rw-r--r-- | chromeos/dbus/fake_cryptohome_client.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chromeos/dbus/fake_cryptohome_client.cc b/chromeos/dbus/fake_cryptohome_client.cc index fb54054..9c2383c 100644 --- a/chromeos/dbus/fake_cryptohome_client.cc +++ b/chromeos/dbus/fake_cryptohome_client.cc @@ -16,7 +16,7 @@ const char kStubSystemSalt[] = "stub_system_salt"; } // namespace -FakeCryptohomeClient::FakeCryptohomeClient() { +FakeCryptohomeClient::FakeCryptohomeClient() : unmount_result_(false) { } FakeCryptohomeClient::~FakeCryptohomeClient() { @@ -27,7 +27,8 @@ void FakeCryptohomeClient::TpmIsBeingOwned( } bool FakeCryptohomeClient::Unmount(bool* success) { - return false; + *success = unmount_result_; + return true; } void FakeCryptohomeClient::AsyncCheckKey(const std::string& username, |