Index: chromeos/attestation/mock_attestation.cc |
diff --git a/chromeos/attestation/mock_attestation.cc b/chromeos/attestation/mock_attestation.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2cb9056a03f51acb2b22b7ec71cf10ce38280bd0 |
--- /dev/null |
+++ b/chromeos/attestation/mock_attestation.cc |
@@ -0,0 +1,37 @@ |
+// 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.h" |
+ |
+#include "testing/gmock/include/gmock/gmock.h" |
+ |
+ |
Mattias Nissler (ping if slow)
2013/01/16 10:39:26
nit: remove extra blank line
dkrahn
2013/01/17 23:36:24
Done.
|
+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() {} |
+ |
+MockAttestation::MockAttestation() : Attestation(NULL, NULL, NULL) {} |
+ |
+MockAttestation::~MockAttestation() {} |
+ |
+} |
Mattias Nissler (ping if slow)
2013/01/16 10:39:26
// namespace attestion
dkrahn
2013/01/17 23:36:24
Done.
|
+} |
Mattias Nissler (ping if slow)
2013/01/16 10:39:26
// namespace chromeos
dkrahn
2013/01/17 23:36:24
Done.
|