OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chromeos/attestation/mock_attestation.h" | |
6 | |
7 #include "testing/gmock/include/gmock/gmock.h" | |
8 | |
9 | |
Mattias Nissler (ping if slow)
2013/01/16 10:39:26
nit: remove extra blank line
dkrahn
2013/01/17 23:36:24
Done.
| |
10 using testing::_; | |
11 using testing::Invoke; | |
12 | |
13 namespace chromeos { | |
14 namespace attestation { | |
15 | |
16 MockServerProxy::MockServerProxy() {} | |
17 | |
18 MockServerProxy::~MockServerProxy() {} | |
19 | |
20 void MockServerProxy::DeferToFake(bool success) { | |
21 fake_.set_result(success); | |
22 ON_CALL(*this, SendEnrollRequest(_, _)) | |
23 .WillByDefault(Invoke(&fake_, &FakeServerProxy::SendEnrollRequest)); | |
24 ON_CALL(*this, SendCertificateRequest(_, _)) | |
25 .WillByDefault(Invoke(&fake_, &FakeServerProxy::SendCertificateRequest)); | |
26 } | |
27 | |
28 MockObserver::MockObserver() {} | |
29 | |
30 MockObserver::~MockObserver() {} | |
31 | |
32 MockAttestation::MockAttestation() : Attestation(NULL, NULL, NULL) {} | |
33 | |
34 MockAttestation::~MockAttestation() {} | |
35 | |
36 } | |
Mattias Nissler (ping if slow)
2013/01/16 10:39:26
// namespace attestion
dkrahn
2013/01/17 23:36:24
Done.
| |
37 } | |
Mattias Nissler (ping if slow)
2013/01/16 10:39:26
// namespace chromeos
dkrahn
2013/01/17 23:36:24
Done.
| |
OLD | NEW |