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

Unified Diff: chromeos/cryptohome/mock_async_method_caller.h

Issue 11932004: Implemented attestation message flow for Chrome OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/cryptohome/mock_async_method_caller.h
diff --git a/chromeos/cryptohome/mock_async_method_caller.h b/chromeos/cryptohome/mock_async_method_caller.h
index 37bc0c445d232e044521f2955f79f0470636fc9a..f52c4938fdabd008aacb9cb5f8e4948556e2f714 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;
satorux1 2013/01/15 23:04:13 nit: please do the following for consistency stat
dkrahn 2013/01/17 23:36:24 Done.
+ 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);
};

Powered by Google App Engine
This is Rietveld 408576698