summaryrefslogtreecommitdiffstats
path: root/chromeos/cryptohome/mock_async_method_caller.h
diff options
context:
space:
mode:
authordkrahn@google.com <dkrahn@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-06 16:42:29 +0000
committerdkrahn@google.com <dkrahn@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-06 16:42:29 +0000
commit96f72d77c9d7d894481074f2742d5f2cdc4e04c7 (patch)
treea9e9e0811b9e890be1732e68ac9078a48aec3589 /chromeos/cryptohome/mock_async_method_caller.h
parent5e02229f7f2a22644feec7b1948e2816b5788b3f (diff)
downloadchromium_src-96f72d77c9d7d894481074f2742d5f2cdc4e04c7.zip
chromium_src-96f72d77c9d7d894481074f2742d5f2cdc4e04c7.tar.gz
chromium_src-96f72d77c9d7d894481074f2742d5f2cdc4e04c7.tar.bz2
Implemented attestation message flow for Chrome OS.
Chrome OS has an attestation service which can interact with a Privacy CA in order to generate an attestation certificate. The AttestationFlow class coordinates this interaction. BUG=chromium-os:37806 TEST=unit Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178354 Review URL: https://chromiumcodereview.appspot.com/11932004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180987 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/cryptohome/mock_async_method_caller.h')
-rw-r--r--chromeos/cryptohome/mock_async_method_caller.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chromeos/cryptohome/mock_async_method_caller.h b/chromeos/cryptohome/mock_async_method_caller.h
index 37bc0c44..2e8d352 100644
--- a/chromeos/cryptohome/mock_async_method_caller.h
+++ b/chromeos/cryptohome/mock_async_method_caller.h
@@ -16,6 +16,10 @@ namespace cryptohome {
class MockAsyncMethodCaller : public AsyncMethodCaller {
public:
+ static const char kFakeAttestationEnrollRequest[];
+ static const char kFakeAttestationCertRequest[];
+ static const char kFakeAttestationCert[];
+
MockAsyncMethodCaller();
virtual ~MockAsyncMethodCaller();
@@ -50,6 +54,10 @@ class MockAsyncMethodCaller : public AsyncMethodCaller {
MountError return_code_;
void DoCallback(Callback callback);
+ // Default fakes for attestation calls.
+ void FakeCreateEnrollRequest(const DataCallback& callback);
+ void FakeCreateCertRequest(const DataCallback& callback);
+ void FakeFinishCertRequest(const DataCallback& callback);
DISALLOW_COPY_AND_ASSIGN(MockAsyncMethodCaller);
};