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_METHOD3(GetCertificate, void(AttestationCertificateProfile, | 68 MOCK_METHOD5(GetCertificate, void(AttestationCertificateProfile, |
| 69 const std::string&, |
| 70 const std::string&, |
69 bool, | 71 bool, |
70 const CertificateCallback&)); | 72 const CertificateCallback&)); |
71 }; | 73 }; |
72 | 74 |
73 } // namespace attestation | 75 } // namespace attestation |
74 } // namespace chromeos | 76 } // namespace chromeos |
75 | 77 |
76 #endif // CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_ | 78 #endif // CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_ |
OLD | NEW |