| OLD | NEW |
| 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/flip_server/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/flip_server/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); |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |