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

Side by Side Diff: chromeos/attestation/mock_attestation_flow.h

Issue 14305009: Enhanced and refactored the AttestationFlow interface. (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698