OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_ | 5 #ifndef CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_ |
6 #define CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_ | 6 #define CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_ |
7 | 7 |
8 #include "chromeos/attestation/attestation_flow.h" | 8 #include "chromeos/attestation/attestation_flow.h" |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual ~MockObserver(); | 58 virtual ~MockObserver(); |
59 | 59 |
60 MOCK_METHOD2(MockCertificateCallback, void(bool, const std::string&)); | 60 MOCK_METHOD2(MockCertificateCallback, void(bool, const std::string&)); |
61 }; | 61 }; |
62 | 62 |
63 class MockAttestationFlow : public AttestationFlow { | 63 class MockAttestationFlow : public AttestationFlow { |
64 public: | 64 public: |
65 MockAttestationFlow(); | 65 MockAttestationFlow(); |
66 virtual ~MockAttestationFlow(); | 66 virtual ~MockAttestationFlow(); |
67 | 67 |
68 MOCK_METHOD2(GetCertificate, void(const std::string&, | 68 MOCK_METHOD3(GetCertificate, void(AttestationCertificateProfile, |
| 69 bool, |
69 const CertificateCallback&)); | 70 const CertificateCallback&)); |
70 }; | 71 }; |
71 | 72 |
72 } // namespace attestation | 73 } // namespace attestation |
73 } // namespace chromeos | 74 } // namespace chromeos |
74 | 75 |
75 #endif // CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_ | 76 #endif // CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_ |
OLD | NEW |