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

Side by Side Diff: net/spdy/spdy_test_util_common.h

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment 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 | « net/spdy/spdy_stream_test_util.h ('k') | net/spdy/spdy_test_util_common.cc » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 }; 152 };
153 153
154 // An ECSignatureCreator that returns deterministic signatures. 154 // An ECSignatureCreator that returns deterministic signatures.
155 class MockECSignatureCreator : public crypto::ECSignatureCreator { 155 class MockECSignatureCreator : public crypto::ECSignatureCreator {
156 public: 156 public:
157 explicit MockECSignatureCreator(crypto::ECPrivateKey* key); 157 explicit MockECSignatureCreator(crypto::ECPrivateKey* key);
158 158
159 // crypto::ECSignatureCreator 159 // crypto::ECSignatureCreator
160 virtual bool Sign(const uint8* data, 160 virtual bool Sign(const uint8* data,
161 int data_len, 161 int data_len,
162 std::vector<uint8>* signature) OVERRIDE; 162 std::vector<uint8>* signature) override;
163 virtual bool DecodeSignature(const std::vector<uint8>& signature, 163 virtual bool DecodeSignature(const std::vector<uint8>& signature,
164 std::vector<uint8>* out_raw_sig) OVERRIDE; 164 std::vector<uint8>* out_raw_sig) override;
165 165
166 private: 166 private:
167 crypto::ECPrivateKey* key_; 167 crypto::ECPrivateKey* key_;
168 168
169 DISALLOW_COPY_AND_ASSIGN(MockECSignatureCreator); 169 DISALLOW_COPY_AND_ASSIGN(MockECSignatureCreator);
170 }; 170 };
171 171
172 // An ECSignatureCreatorFactory creates MockECSignatureCreator. 172 // An ECSignatureCreatorFactory creates MockECSignatureCreator.
173 class MockECSignatureCreatorFactory : public crypto::ECSignatureCreatorFactory { 173 class MockECSignatureCreatorFactory : public crypto::ECSignatureCreatorFactory {
174 public: 174 public:
175 MockECSignatureCreatorFactory(); 175 MockECSignatureCreatorFactory();
176 virtual ~MockECSignatureCreatorFactory(); 176 virtual ~MockECSignatureCreatorFactory();
177 177
178 // crypto::ECSignatureCreatorFactory 178 // crypto::ECSignatureCreatorFactory
179 virtual crypto::ECSignatureCreator* Create( 179 virtual crypto::ECSignatureCreator* Create(
180 crypto::ECPrivateKey* key) OVERRIDE; 180 crypto::ECPrivateKey* key) override;
181 181
182 private: 182 private:
183 DISALLOW_COPY_AND_ASSIGN(MockECSignatureCreatorFactory); 183 DISALLOW_COPY_AND_ASSIGN(MockECSignatureCreatorFactory);
184 }; 184 };
185 185
186 // Helper to manage the lifetimes of the dependencies for a 186 // Helper to manage the lifetimes of the dependencies for a
187 // HttpNetworkTransaction. 187 // HttpNetworkTransaction.
188 struct SpdySessionDependencies { 188 struct SpdySessionDependencies {
189 // Default set of dependencies -- "null" proxy service. 189 // Default set of dependencies -- "null" proxy service.
190 explicit SpdySessionDependencies(NextProto protocol); 190 explicit SpdySessionDependencies(NextProto protocol);
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 base::StringPiece url, 572 base::StringPiece url,
573 int64* content_length) const; 573 int64* content_length) const;
574 574
575 const NextProto protocol_; 575 const NextProto protocol_;
576 const SpdyMajorVersion spdy_version_; 576 const SpdyMajorVersion spdy_version_;
577 }; 577 };
578 578
579 } // namespace net 579 } // namespace net
580 580
581 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 581 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_stream_test_util.h ('k') | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698