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

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, 10 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
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/cryptohome/mock_async_method_caller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2e8d3528586d3c29cbf82365416ba1630552b19c 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);
};
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/cryptohome/mock_async_method_caller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698