| OLD | NEW |
| 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 #include <algorithm> | 5 #include <algorithm> |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/pickle.h" | 9 #include "base/pickle.h" |
| 9 #include "base/time.h" | 10 #include "base/time.h" |
| 10 #include "base/values.h" | 11 #include "base/values.h" |
| 11 #include "net/http/http_response_headers.h" | 12 #include "net/http/http_response_headers.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 struct TestData { | 17 struct TestData { |
| 17 const char* raw_headers; | 18 const char* raw_headers; |
| (...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1777 EXPECT_EQ(parsed->response_code(), recreated->response_code()); | 1778 EXPECT_EQ(parsed->response_code(), recreated->response_code()); |
| 1778 EXPECT_EQ(parsed->GetContentLength(), recreated->GetContentLength()); | 1779 EXPECT_EQ(parsed->GetContentLength(), recreated->GetContentLength()); |
| 1779 EXPECT_EQ(parsed->IsKeepAlive(), recreated->IsKeepAlive()); | 1780 EXPECT_EQ(parsed->IsKeepAlive(), recreated->IsKeepAlive()); |
| 1780 | 1781 |
| 1781 std::string normalized_parsed; | 1782 std::string normalized_parsed; |
| 1782 parsed->GetNormalizedHeaders(&normalized_parsed); | 1783 parsed->GetNormalizedHeaders(&normalized_parsed); |
| 1783 std::string normalized_recreated; | 1784 std::string normalized_recreated; |
| 1784 parsed->GetNormalizedHeaders(&normalized_recreated); | 1785 parsed->GetNormalizedHeaders(&normalized_recreated); |
| 1785 EXPECT_EQ(normalized_parsed, normalized_recreated); | 1786 EXPECT_EQ(normalized_parsed, normalized_recreated); |
| 1786 } | 1787 } |
| OLD | NEW |