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

Unified Diff: chromeos/attestation/mock_attestation_flow.h

Issue 12556004: Created AttestationPolicyObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/attestation/attestation_flow_unittest.cc ('k') | chromeos/attestation/mock_attestation_flow.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/attestation/mock_attestation_flow.h
diff --git a/chromeos/attestation/mock_attestation_flow.h b/chromeos/attestation/mock_attestation_flow.h
index c9dc9d57892483ed6160737b5284b10ed55d2d49..59462c5410daeb494f6375be2139582cc0ac490d 100644
--- a/chromeos/attestation/mock_attestation_flow.h
+++ b/chromeos/attestation/mock_attestation_flow.h
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#ifndef CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_
+#define CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_
+
#include "chromeos/attestation/attestation_flow.h"
#include "base/basictypes.h"
@@ -57,5 +60,16 @@ class MockObserver {
MOCK_METHOD2(MockCertificateCallback, void(bool, const std::string&));
};
+class MockAttestationFlow : public AttestationFlow {
+ public:
+ MockAttestationFlow();
+ virtual ~MockAttestationFlow();
+
+ MOCK_METHOD2(GetCertificate, void(const std::string&,
+ const CertificateCallback&));
+};
+
} // namespace attestation
} // namespace chromeos
+
+#endif // CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_
« no previous file with comments | « chromeos/attestation/attestation_flow_unittest.cc ('k') | chromeos/attestation/mock_attestation_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698