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

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

Issue 12556004: Created AttestationPolicyObserver. (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
« no previous file with comments | « chromeos/attestation/mock_attestation_flow.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
OLDNEW
« no previous file with comments | « chromeos/attestation/mock_attestation_flow.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698