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

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

Issue 2529743002: Wait for the attestation to be ready (TPM being prepared for attestation) before trying to enroll. (Closed)
Patch Set: Slightly lower retry delay. Created 4 years 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
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 <memory> 7 #include <memory>
8 8
9 #include "components/signin/core/account_id/account_id.h" 9 #include "components/signin/core/account_id/account_id.h"
10 10
(...skipping 30 matching lines...) Expand all
41 .WillByDefault(Invoke(&fake_, &FakeServerProxy::SendEnrollRequest)); 41 .WillByDefault(Invoke(&fake_, &FakeServerProxy::SendEnrollRequest));
42 ON_CALL(*this, SendCertificateRequest(_, _)) 42 ON_CALL(*this, SendCertificateRequest(_, _))
43 .WillByDefault(Invoke(&fake_, &FakeServerProxy::SendCertificateRequest)); 43 .WillByDefault(Invoke(&fake_, &FakeServerProxy::SendCertificateRequest));
44 } 44 }
45 45
46 MockObserver::MockObserver() {} 46 MockObserver::MockObserver() {}
47 47
48 MockObserver::~MockObserver() {} 48 MockObserver::~MockObserver() {}
49 49
50 MockAttestationFlow::MockAttestationFlow() 50 MockAttestationFlow::MockAttestationFlow()
51 : AttestationFlow(NULL, NULL, std::unique_ptr<ServerProxy>()) {} 51 : AttestationFlow(NULL,
achuithb 2016/12/05 19:53:59 nullptr
52 NULL,
53 std::unique_ptr<ServerProxy>(),
54 base::TimeDelta::Max()) {}
52 55
53 MockAttestationFlow::~MockAttestationFlow() {} 56 MockAttestationFlow::~MockAttestationFlow() {}
54 57
55 } // namespace attestation 58 } // namespace attestation
56 } // namespace chromeos 59 } // namespace chromeos
OLDNEW
« chromeos/attestation/attestation_flow.cc ('K') | « chromeos/attestation/attestation_flow_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698