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

Side by Side Diff: net/tools/balsa/balsa_headers_test.cc

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/tools/balsa/balsa_frame_test.cc ('k') | net/tools/balsa/noop_balsa_visitor.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "net/tools/balsa/balsa_headers.h" 5 #include "net/tools/balsa/balsa_headers.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/strings/string_piece.h" 12 #include "base/strings/string_piece.h"
13 #include "net/tools/balsa/balsa_enums.h" 13 #include "net/tools/balsa/balsa_enums.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace net { 16 namespace net {
17 17
18 using ::base::StringPiece; 18 using ::base::StringPiece;
19 19
20 class BalsaBufferTest : public ::testing::Test { 20 class BalsaBufferTest : public ::testing::Test {
21 public: 21 public:
22 virtual void SetUp() OVERRIDE { 22 virtual void SetUp() override {
23 buffer_.reset(new BalsaBuffer); 23 buffer_.reset(new BalsaBuffer);
24 anotherBuffer_.reset(new BalsaBuffer); 24 anotherBuffer_.reset(new BalsaBuffer);
25 } 25 }
26 26
27 protected: 27 protected:
28 scoped_ptr<BalsaBuffer> buffer_; 28 scoped_ptr<BalsaBuffer> buffer_;
29 scoped_ptr<BalsaBuffer> anotherBuffer_; 29 scoped_ptr<BalsaBuffer> anotherBuffer_;
30 }; 30 };
31 31
32 namespace { 32 namespace {
33 33
34 class BalsaHeadersTest: public ::testing::Test { 34 class BalsaHeadersTest: public ::testing::Test {
35 public: 35 public:
36 virtual void SetUp() OVERRIDE { 36 virtual void SetUp() override {
37 headers_.reset(new BalsaHeaders); 37 headers_.reset(new BalsaHeaders);
38 } 38 }
39 39
40 protected: 40 protected:
41 scoped_ptr<BalsaHeaders> headers_; 41 scoped_ptr<BalsaHeaders> headers_;
42 }; 42 };
43 43
44 class StringBuffer { 44 class StringBuffer {
45 public: 45 public:
46 void Write(const char* p, size_t size) { 46 void Write(const char* p, size_t size) {
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 383
384 ASSERT_EQ("HTTP/1.0 403 FORBIDDEN", headers_->first_line()); 384 ASSERT_EQ("HTTP/1.0 403 FORBIDDEN", headers_->first_line());
385 ASSERT_EQ("HTTP/1.0", headers_->response_version()); 385 ASSERT_EQ("HTTP/1.0", headers_->response_version());
386 ASSERT_EQ("403", headers_->response_code()); 386 ASSERT_EQ("403", headers_->response_code());
387 ASSERT_EQ("FORBIDDEN", headers_->response_reason_phrase()); 387 ASSERT_EQ("FORBIDDEN", headers_->response_reason_phrase());
388 } 388 }
389 389
390 } // namespace 390 } // namespace
391 391
392 } // namespace net 392 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/balsa/balsa_frame_test.cc ('k') | net/tools/balsa/noop_balsa_visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698