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

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

Issue 628883002: replace OVERRIDE and FINAL with override and final in chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | chromeos/audio/audio_devices_pref_handler_stub.h » ('j') | 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 #ifndef CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_ 5 #ifndef CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_
6 #define CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_ 6 #define CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_
7 7
8 #include "chromeos/attestation/attestation_flow.h" 8 #include "chromeos/attestation/attestation_flow.h"
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 namespace attestation { 15 namespace attestation {
16 16
17 // A fake server proxy which just appends "_response" to every request. 17 // A fake server proxy which just appends "_response" to every request.
18 class FakeServerProxy : public ServerProxy { 18 class FakeServerProxy : public ServerProxy {
19 public: 19 public:
20 FakeServerProxy(); 20 FakeServerProxy();
21 virtual ~FakeServerProxy(); 21 virtual ~FakeServerProxy();
22 22
23 void set_result(bool result) { 23 void set_result(bool result) {
24 result_ = result; 24 result_ = result;
25 } 25 }
26 26
27 virtual void SendEnrollRequest(const std::string& request, 27 virtual void SendEnrollRequest(const std::string& request,
28 const DataCallback& callback) OVERRIDE; 28 const DataCallback& callback) override;
29 29
30 virtual void SendCertificateRequest(const std::string& request, 30 virtual void SendCertificateRequest(const std::string& request,
31 const DataCallback& callback) OVERRIDE; 31 const DataCallback& callback) override;
32 32
33 private: 33 private:
34 bool result_; 34 bool result_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(FakeServerProxy); 36 DISALLOW_COPY_AND_ASSIGN(FakeServerProxy);
37 }; 37 };
38 38
39 class MockServerProxy : public ServerProxy { 39 class MockServerProxy : public ServerProxy {
40 public: 40 public:
41 MockServerProxy(); 41 MockServerProxy();
(...skipping 28 matching lines...) Expand all
70 const std::string&, 70 const std::string&,
71 const std::string&, 71 const std::string&,
72 bool, 72 bool,
73 const CertificateCallback&)); 73 const CertificateCallback&));
74 }; 74 };
75 75
76 } // namespace attestation 76 } // namespace attestation
77 } // namespace chromeos 77 } // namespace chromeos
78 78
79 #endif // CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_ 79 #endif // CHROMEOS_ATTESTATION_MOCK_ATTESTATION_FLOW_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/audio/audio_devices_pref_handler_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698