| Index: chromeos/attestation/mock_attestation_flow.cc
|
| diff --git a/chromeos/attestation/mock_attestation_flow.cc b/chromeos/attestation/mock_attestation_flow.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f7409d9ac4ec9f6fbe39febd4bb633a9bab14df4
|
| --- /dev/null
|
| +++ b/chromeos/attestation/mock_attestation_flow.cc
|
| @@ -0,0 +1,32 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chromeos/attestation/mock_attestation_flow.h"
|
| +
|
| +#include "testing/gmock/include/gmock/gmock.h"
|
| +
|
| +using testing::_;
|
| +using testing::Invoke;
|
| +
|
| +namespace chromeos {
|
| +namespace attestation {
|
| +
|
| +MockServerProxy::MockServerProxy() {}
|
| +
|
| +MockServerProxy::~MockServerProxy() {}
|
| +
|
| +void MockServerProxy::DeferToFake(bool success) {
|
| + fake_.set_result(success);
|
| + ON_CALL(*this, SendEnrollRequest(_, _))
|
| + .WillByDefault(Invoke(&fake_, &FakeServerProxy::SendEnrollRequest));
|
| + ON_CALL(*this, SendCertificateRequest(_, _))
|
| + .WillByDefault(Invoke(&fake_, &FakeServerProxy::SendCertificateRequest));
|
| +}
|
| +
|
| +MockObserver::MockObserver() {}
|
| +
|
| +MockObserver::~MockObserver() {}
|
| +
|
| +} // namespace attestation
|
| +} // namespace chromeos
|
|
|