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 #include "chromeos/attestation/mock_attestation_flow.h" | 5 #include "chromeos/attestation/mock_attestation_flow.h" |
6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" |
7 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
8 | 9 |
9 using testing::_; | 10 using testing::_; |
10 using testing::Invoke; | 11 using testing::Invoke; |
11 | 12 |
12 namespace chromeos { | 13 namespace chromeos { |
13 namespace attestation { | 14 namespace attestation { |
14 | 15 |
15 FakeServerProxy::FakeServerProxy() : result_(true) {} | 16 FakeServerProxy::FakeServerProxy() : result_(true) {} |
16 | 17 |
(...skipping 18 matching lines...) Expand all Loading... |
35 ON_CALL(*this, SendEnrollRequest(_, _)) | 36 ON_CALL(*this, SendEnrollRequest(_, _)) |
36 .WillByDefault(Invoke(&fake_, &FakeServerProxy::SendEnrollRequest)); | 37 .WillByDefault(Invoke(&fake_, &FakeServerProxy::SendEnrollRequest)); |
37 ON_CALL(*this, SendCertificateRequest(_, _)) | 38 ON_CALL(*this, SendCertificateRequest(_, _)) |
38 .WillByDefault(Invoke(&fake_, &FakeServerProxy::SendCertificateRequest)); | 39 .WillByDefault(Invoke(&fake_, &FakeServerProxy::SendCertificateRequest)); |
39 } | 40 } |
40 | 41 |
41 MockObserver::MockObserver() {} | 42 MockObserver::MockObserver() {} |
42 | 43 |
43 MockObserver::~MockObserver() {} | 44 MockObserver::~MockObserver() {} |
44 | 45 |
| 46 MockAttestationFlow::MockAttestationFlow() |
| 47 : AttestationFlow(NULL, NULL, scoped_ptr<ServerProxy>()) {} |
| 48 |
| 49 MockAttestationFlow::~MockAttestationFlow() {} |
| 50 |
45 } // namespace attestation | 51 } // namespace attestation |
46 } // namespace chromeos | 52 } // namespace chromeos |
OLD | NEW |